Skip to content

Commit dfdef48

Browse files
committed
Format code style to fit the precommit standard
1 parent 41ef2ad commit dfdef48

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

bluesky_httpserver/authorization/resource_access.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class SingleGroupResourceAccessControl(DefaultResourceAccessControl):
8383
Single group resource access policy.
8484
The resource access policy associates users with its correspondent first user group. The groups
8585
define the resources, such as plans and devices users can access. The
86-
single group policy assumes that one user belong to a single group or if they are unauthenticated or
86+
single group policy assumes that one user belong to a single group or if they are unauthenticated or
8787
have authenticated with a single-user API key, it uses the default user group.
8888
The arguments of the class constructor are the same as the one specified in the DefaultResourceAccessControl configuration
8989
file as shown in the example below.
@@ -120,10 +120,7 @@ def get_resource_group(self, username, group):
120120
Name of the user group.
121121
"""
122122
if isinstance(group, list):
123-
if group[0] in ['unauthenticated_public', 'unauthenticated_single_user']:
123+
if group[0] in ["unauthenticated_public", "unauthenticated_single_user"]:
124124
return self.get_resource_group(username, group)
125125
return group[0]
126126
return group
127-
128-
129-

0 commit comments

Comments
 (0)