In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
736 [In-Portal CMS] Permissions feature request N/A 2010-05-18 07:42 2010-07-22 15:06
alex  
alex  
normal  
closed 5.0.3  
fixed  
 
none 5.1.0-B1  
http://groups.google.com/group/in-portal-dev/browse_thread/thread/e143608faa6f70c
0
0000736: New "debug" event permission
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 to 0000704closed  (5.1.0)alex Improvements to "E-mail Template" editing 
patch debug_permission_name_for_events.patch (1,517) 2010-05-18 07:42
http://tracker.in-portal.org/file_download.php?file_id=553&type=bug
Issue History
2010-07-22 15:06 alex Note Added: 0002525
2010-07-22 15:06 alex Status resolved => closed
2010-05-19 02:44 alex Note Added: 0002249
2010-05-19 02:44 alex Status reviewed and tested => resolved
2010-05-19 02:44 alex Fixed in Version => 5.1.0-B1
2010-05-19 02:44 alex Resolution open => fixed
2010-05-19 02:44 alex Assigned To !COMMUNITY => alex
2010-05-19 02:44 alex Changeset attached 5.1.x r13584
2010-05-18 22:27 Dmitry Note Added: 0002241
2010-05-18 22:27 Dmitry Status needs testing => reviewed and tested
2010-05-18 07:43 alex Assigned To => !COMMUNITY
2010-05-18 07:43 alex Developer => alex
2010-05-18 07:43 alex Status active => needs testing
2010-05-18 07:43 alex Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/e143608faa6f70c
2010-05-18 07:42 alex Relationship added related to 0000704
2010-05-18 07:42 alex New Issue
2010-05-18 07:42 alex File Added: debug_permission_name_for_events.patch

Notes
(0002241)
Dmitry   
2010-05-18 22:27   
Tested good.
(0002249)
alex   
2010-05-19 02:44   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000736: New "debug" event permission
(0002525)
alex   
2010-07-22 15:06   
Closing, since 5.1.0 release has been released.