/
New "debug" event permission

New "debug" event permission

Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/0e143608faa6f70c#

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); 
} 

Related Tasks

INP-583 - Getting issue details... STATUS