Skip to content

Commit

Permalink
style: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpalmerio committed Sep 26, 2023
1 parent 64c4146 commit e511114
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions common/djangoapps/student/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ def get_user_permissions(user, course_key, org=None):
"manage_adv_settings",
"view_course_settings",
"manage_all_users"
]
]
STAFF_ROLE_PERMISSIONS = [
"edit_content",
"manage_course_settings",
"manage_adv_settings",
"view_course_settings",
"manage_users_except_admin_and_staff"
]
]
if org is None:
org = course_key.org
course_key = course_key.for_branch(None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def load_data(self, full_course_outline):
# below will never return true.
# Remove the user_has_role call when course roles are implemented.
self._is_beta_tester = user_has_role(self.user, CourseBetaTesterRole(self.course_key)) or (
course_permission_check(self.user, VIEW_ALL_PUBLISHED_CONTENT_PERMISSION, self.course_key)
or course_permission_check(self.user, VIEW_ONLY_LIVE_PUBLISHED_CONTENT_PERMISSION, self.course_key)
course_permission_check(self.user, VIEW_ALL_PUBLISHED_CONTENT_PERMISSION, self.course_key)
or course_permission_check(self.user, VIEW_ONLY_LIVE_PUBLISHED_CONTENT_PERMISSION, self.course_key)
)

def inaccessible_sequences(self, full_course_outline):
Expand Down

0 comments on commit e511114

Please sign in to comment.