/
Extract "permission checking disabled" concept [5.2.2-B2]
Extract "permission checking disabled" concept [5.2.2-B2]
The permission system of In-Portal allows to specify what functionality of In-Portal is allowed to be used by each logged-in user. Also there is "root" user for which access permissions aren't checked at all.
Proposing to extract logic based on which permission checking is disabled into "kApplication::permissionCheckingDisabled" method to allow disabling permission checks for needed users as part of customization.
Solution
- add "kApplication::permissionCheckingDisabled" method, that will return "true" if "root" user is logged-in and return false otherwise
- locate places where USER_ROOT constant is used in comparisons to evade permission checks
- in found places use "kApplication::permissionCheckingDisabled" method instead of checking for "root" user explicitly