/
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

  1. add "kApplication::permissionCheckingDisabled" method, that will return "true" if "root" user is logged-in and return false otherwise
  2. locate places where USER_ROOT constant is used in comparisons to evade permission checks
  3. in found places use "kApplication::permissionCheckingDisabled" method instead of checking for "root" user explicitly

Related Tasks

INP-1665 - Getting issue details... STATUS