Small fixes for frostfsid, policy contracts #55

Merged
fyrchik merged 9 commits from fyrchik/frostfs-contract:frostfsid-admin into master 2024-09-04 19:51:17 +00:00
Showing only changes of commit f30fb324ff - Show all commits

View file

@ -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)
}