diff --git a/back-end/src/auth/populate/permissions.py b/back-end/src/auth/populate/permissions.py index 3821eef4..5137dac4 100644 --- a/back-end/src/auth/populate/permissions.py +++ b/back-end/src/auth/populate/permissions.py @@ -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 = [] @@ -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 = [] diff --git a/back-end/src/common/tests/test_milsepcialties_listing.py b/back-end/src/common/tests/test_milsepcialties_listing.py index 356e88b8..a0d3bb14 100644 --- a/back-end/src/common/tests/test_milsepcialties_listing.py +++ b/back-end/src/common/tests/test_milsepcialties_listing.py @@ -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( diff --git a/back-end/src/lms/views/reference_book.py b/back-end/src/lms/views/reference_book.py index 71393e3a..730c794c 100644 --- a/back-end/src/lms/views/reference_book.py +++ b/back-end/src/lms/views/reference_book.py @@ -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,