misspell fix

pull/5/head
Mustafa Yontar 4 years ago
parent dbef52ed66
commit b281b30020
  1. 6
      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

Loading…
Cancel
Save