From acdddee159b0fae8061849facf4b2024a2ac8f60 Mon Sep 17 00:00:00 2001 From: c8y3 <25362953+c8y3@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:05:58 +0200 Subject: [PATCH] [IMP] Removed small typo --- source/app/business/permissions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/app/business/permissions.py b/source/app/business/permissions.py index 5ccc3597c..672ab07d2 100644 --- a/source/app/business/permissions.py +++ b/source/app/business/permissions.py @@ -26,7 +26,7 @@ from app.business.errors import PermissionDeniedError -# When moving down premission checks from the REST layer into the business layer, +# When moving down permission checks from the REST layer into the business layer, # this method is used to replace manual calls to ac_fast_check_current_user_has_case_access def check_current_user_has_some_case_access(case_identifier, access_levels): if not ac_fast_check_current_user_has_case_access(case_identifier, access_levels): @@ -35,7 +35,7 @@ def check_current_user_has_some_case_access(case_identifier, access_levels): # TODO: really this and the previous method should be merged. # This one comes from ac_api_case_requires, whereas the other one comes from the way api_delete_case was written... -# When moving down premission checks from the REST layer into the business layer, +# When moving down permission checks from the REST layer into the business layer, # this method is used to replace annotation ac_api_case_requires def check_current_user_has_some_case_access_stricter(access_levels): redir, caseid, has_access = get_case_access(request, access_levels, from_api=True) @@ -48,7 +48,7 @@ def check_current_user_has_some_case_access_stricter(access_levels): raise PermissionDeniedError() -# When moving down premission checks from the REST layer into the business layer, +# When moving down permission checks from the REST layer into the business layer, # this method is used to replace annotation ac_api_requires def check_current_user_has_some_permission(permissions): if 'permissions' not in session: