In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000736 [In-Portal CMS] Permissions feature request N/A 2010-05-18 07:42 2010-07-22 15:06
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.1.0-B1
Status closed Product Version 5.0.3 Target Version 5.1.0
Time EstimateNo estimate
Summary 0000736: New "debug" event permission
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);
}
Additional Information
Tags No tags attached.
Reference http://groups.google.com/group/in-portal-dev/browse_thread/thread/e143608faa6f70c
Change Log Message
Estimate Points 0
Attached Files patch file icon debug_permission_name_for_events.patch [^] (1,517 bytes) 2010-05-18 07:42 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to 0000704closed (5.1.0)alex Improvements to "E-mail Template" editing 

-  Notes
User avatar (0002241)
Dmitry (manager)
2010-05-18 22:27

Tested good.
User avatar (0002249)
alex (manager)
2010-05-19 02:44

Fix committed to 5.1.x branch. Commit Message:

Fixes 0000736: New "debug" event permission
User avatar (0002525)
alex (manager)
2010-07-22 15:06

Closing, since 5.1.0 release has been released.

- Related Changesets
In-Portal CMS: 5.1.x r13584
Timestamp: 2010-05-19 02:44:09
Author: alex
Details ] Diff ]
Fixes 0000736: New "debug" event permission
mod - /in-portal/branches/5.1.x/core/units/helpers/permissions_helper.php Diff ] File ]

- Issue History
Date Modified Username Field Change
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



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker