Small fixes for frostfsid, policy contracts #55
1 changed files with 3 additions and 4 deletions
|
@ -47,14 +47,13 @@ func _deploy(data any, isUpdate bool) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func checkAuthorization(ctx storage.Context) {
|
func checkAuthorization(ctx storage.Context) {
|
||||||
if runtime.CheckWitness(common.AlphabetAddress()) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
admin := getAdmin(ctx)
|
admin := getAdmin(ctx)
|
||||||
if admin != nil && runtime.CheckWitness(admin) {
|
if admin != nil && runtime.CheckWitness(admin) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if runtime.CheckWitness(common.AlphabetAddress()) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
panic(ErrNotAutorized)
|
panic(ErrNotAutorized)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue