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) {
|
||||
if runtime.CheckWitness(common.AlphabetAddress()) {
|
||||
return
|
||||
}
|
||||
|
||||
admin := getAdmin(ctx)
|
||||
if admin != nil && runtime.CheckWitness(admin) {
|
||||
return
|
||||
}
|
||||
if runtime.CheckWitness(common.AlphabetAddress()) {
|
||||
return
|
||||
}
|
||||
|
||||
panic(ErrNotAutorized)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue