Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-583

New "debug" event permission

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.3
    • Fix Version/s: 5.1.0-B1
    • Component/s: Permissions
    • Labels:
      None

      Description

      All events, that are executed based on user form submit are checked against permission, that allows to execute them. Mapping between events and their permissions is defined in "mapPermissions" method of event handler, that holds event implementation.

      Recently I came across need to make several events to be allowed for execution not based on user group-based permission, but simply when debug mode is on.

      To use it you need to use "debug" keyword in permission mapping instead "add"/"edit" etc. e.g.:

      function mapPermissions()

      { parent::mapPermissions(); $permissions = Array ( 'OnMassDelete' => Array ('self' => 'debug'), ); $this->permMapping = array_merge($this->permMapping, $permissions); }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: