Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

  • No labels