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
permissionagainst permission, that allows to execute them. Mapping between events and their
permissions their permissions is defined in "mapPermissions" method of event handler, that
holds 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.:
Code Block |
---|
function mapPermissions() |
...
{ parent::mapPermissions(); |
...
$permissions = Array ( 'OnMassDelete' => Array ('self' => 'debug'), |
...
); $this->permMapping = array_merge($this->permMapping, $permissions); |
...
} |
Related Tasks
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|