Skip to content

Commit 30a662c

Browse files
committed
fix: solve lint issues
1 parent 4115799 commit 30a662c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

common/djangoapps/student/auth.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
from django.core.exceptions import PermissionDenied
1212
from opaque_keys.edx.locator import LibraryLocator
1313
from openedx_authz import api as authz_api
14-
from openedx_authz.constants.permissions import COURSES_CREATE_COURSE, COURSES_MANAGE_ADVANCED_SETTINGS, COURSES_VIEW_ADVANCED_SETTINGS
14+
from openedx_authz.constants.permissions import (
15+
COURSES_CREATE_COURSE,
16+
COURSES_MANAGE_ADVANCED_SETTINGS,
17+
COURSES_VIEW_ADVANCED_SETTINGS,
18+
)
1519

1620
from common.djangoapps.student.roles import (
1721
CourseBetaTesterRole,
@@ -197,12 +201,11 @@ def check_course_advanced_settings_access(user, course_key, access_type='read'):
197201
- 'read': granted to users with MANAGE or VIEW permission (auditors get read-only);
198202
in legacy mode delegates to has_studio_read_access
199203
- 'write': requires MANAGE permission; in legacy mode delegates to has_studio_write_access
200-
- 'feature_restricted': requires MANAGE permission (or staff/superuser when
204+
- 'feature_restricted': requires MANAGE permission (or staff/superuser when
201205
DISABLE_ADVANCED_SETTINGS is set); in legacy mode delegates to
202206
has_studio_advanced_settings_access
203207
Returns:
204208
bool: True if user has permission, False otherwise
205-
206209
Raises
207210
ValueError: If access_type is not one of 'read', 'write', or 'feature_restricted'.
208211
"""

0 commit comments

Comments
 (0)