From b281b30020d4794e2e0ec918e2d515afd647bc85 Mon Sep 17 00:00:00 2001 From: Mustafa Yontar Date: Sun, 31 Jan 2021 02:05:57 +0300 Subject: [PATCH] misspell fix --- internal_lib/permission_parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal_lib/permission_parser.py b/internal_lib/permission_parser.py index efdcca9..788219a 100644 --- a/internal_lib/permission_parser.py +++ b/internal_lib/permission_parser.py @@ -4,10 +4,10 @@ from flask_login import current_user def parse_permission(string): """ Parsing permission string - permission_type{read,delete,write,update,*(for all permissions)}::module_name{module name or for all modules *}::union_id{for all companies *}/item_id{for all items *} + permission_type{read,delete,write,update,*(for all permissions)}::module_name{module name or for all modules *}::union_id{for all unions *}/item_id{for all items *} example string: - read::collectors::union1id/* ->read union1 all collectors - read::collectors::union1id/collector1 ->read union1 collector1 + read::payments::union1id/* ->read union1 all payments + read::payments::union1id/collector1 ->read union1 collector1 *::users::union2/* -> read, write, update, delete all users for union2 *::users::union2/user1 -> read, write, update, delete for users1 in union2 *::*::union2/* -> all permissions for union2