Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ShishckovA committed Oct 18, 2024
1 parent ea34ee3 commit 82a0f22
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions back-end/src/auth/populate/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def get_teacher_permissions():
"papers.get.all",
"categories.get.all",
"publishers.get.all",
"milpecialty-sensetive-information.get.all",
"milpecialty-sensitive-information.get.all",
]

res = []
Expand Down Expand Up @@ -245,7 +245,7 @@ def get_milfaculty_head_permissions():
"approve-student.patch.self",
"approve-student.patch.milgroup",
"approve-student.patch.milfaculty",
"milpecialty-sensetive-information.get.all",
"milpecialty-sensitive-information.get.all",
]

res = []
Expand Down
2 changes: 1 addition & 1 deletion back-end/src/common/tests/test_milsepcialties_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_milspecialty_return_fields(
assert "selectable_by_program" in milspec

give_permission_to_user(
test_user, permission_data("milpecialty-sensetive-information", "get", "all")
test_user, permission_data("milpecialty-sensitive-information", "get", "all")
)

milspecialties_no_program_user = test_client.get(
Expand Down
2 changes: 1 addition & 1 deletion back-end/src/lms/views/reference_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ReferenceBookPermission(BasePermission):


class MilspecialtySensitiveInformationPermission(BasePermission):
permission_class = "milpecialty-sensetive-information"
permission_class = "milpecialty-sensitive-information"
view_name_rus = "Чувствительная информация о ВУС"
scopes = [
Permission.Scope.ALL,
Expand Down

0 comments on commit 82a0f22

Please sign in to comment.