File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def require_superuser_access(self):
180180 >>> print("I am a superuser and can do anything!")
181181 """
182182 self .require_valid ()
183- if not self .has_superuser_access ( ):
183+ if not is_superuser ( self ._Resources ):
184184 L .warning ("Superuser authorization required." , struct_data = {
185185 "cid" : self .CredentialsId })
186186 raise AccessDeniedError ()
@@ -204,7 +204,7 @@ def require_resource_access(self, *resources: str):
204204 >>> print("I can read and write articles!")
205205 """
206206 self .require_valid ()
207- if not self . has_resource_access (* resources ):
207+ if not has_resource_access (self . _Resources , resources , tenant = Tenant . get ( None ) ):
208208 L .warning ("Resource authorization required." , struct_data = {
209209 "resource" : resources , "cid" : self .CredentialsId })
210210 scope = set ()
You can’t perform that action at this time.
0 commit comments