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 Advanced Details Jump to Notes ] Wiki ] View Simple ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0000075 [In-Portal CMS] Security feature request N/A 2009-06-15 01:54 2012-07-25 05:32
Reporter alex View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Platform
Status closed   OS
  OS Version
ETA none Fixed in Version 5.2.0-B1 Product Version 5.0.0
  Target Version 5.2.0 Product Build
Time EstimateNo estimate
Summary 0000075: Denial permissions for "root" user
Description Currently permissions are checked for all users except root. When attempt is made to check permission for "root" user, then "kPermissionHelper::CheckUserPermission" method always returns "true". This all works until someone add denial type permission. When this happens, then "root" given permission will be automatically denied for him and that breaks logic, that everything is allowed to "root".

To solve this problem I propose to add ":deny"/".deny" at the end of permission name. When actual permission check is made and we are checking for "root"'s user permission, then for ":deny"/".deny" at the end:

if ($user_id == -1) {
    return substr($name, -5) == '.deny' ? false : true;
}
Steps To Reproduce
Additional Information
Tags No tags attached.
Reference
Change Log Message
Estimate Points 1
Attached Files patch file icon denial_permissions_75.patch [^] (460 bytes) 2011-11-02 11:23 [Show Content]
patch file icon denial_permissions_v2.patch [^] (5,510 bytes) 2011-11-03 06:33 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
User avatar (0004120)
erik (manager)
2011-11-02 11:24

patch attached - needs testing
User avatar (0004130)
alex (manager)
2011-11-03 06:34

Works, but 1 not needed space was added ("condition1 || condition2" instead of "condition1 || condition2").
User avatar (0004131)
alex (manager)
2011-11-03 06:34

Fix committed to 5.2.x branch. Commit Message:

Fixes 0000075: Denial permissions for "root" user
Commit on behalf of Erik
User avatar (0005062)
alex (manager)
2012-07-25 05:32

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r14731
Timestamp: 2011-11-03 06:34:47
Author: alex
Details ] Diff ]
Fixes 0000075: Denial permissions for "root" user
Commit on behalf of Erik
mod - /in-portal/branches/5.2.x/core/units/helpers/permissions_helper.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-07-25 05:32 alex Note Added: 0005062
2012-07-25 05:32 alex Status resolved => closed
2011-11-03 06:34 alex Note Added: 0004131
2011-11-03 06:34 alex Status reviewed and tested => resolved
2011-11-03 06:34 alex Fixed in Version => 5.2.0-B1
2011-11-03 06:34 alex Resolution open => fixed
2011-11-03 06:34 alex Assigned To !COMMUNITY => alex
2011-11-03 06:34 alex Changeset attached 5.2.x r14731
2011-11-03 06:34 alex Note Added: 0004130
2011-11-03 06:34 alex Assigned To alex => !COMMUNITY
2011-11-03 06:34 alex Status needs testing => reviewed and tested
2011-11-03 06:33 alex File Added: denial_permissions_v2.patch
2011-11-02 11:24 erik Time Estimate Removed 1 =>
2011-11-02 11:24 erik Note Added: 0004120
2011-11-02 11:24 erik Assigned To erik => alex
2011-11-02 11:24 erik Developer => erik
2011-11-02 11:24 erik Status needs work => needs testing
2011-11-02 11:23 erik File Added: denial_permissions_75.patch
2011-10-22 05:24 alex Estimate Points => 1
2011-10-21 09:09 Dmitry Assigned To => erik
2011-10-21 09:09 Dmitry Status active => needs work
2011-09-27 05:06 alex Time Estimate Added 1
2011-09-23 21:59 Dmitry Target Version Icebox => 5.2.0
2009-06-15 23:38 Dmitry Target Version => Icebox
2009-06-15 01:54 alex New Issue



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

Powered by Mantis Bugtracker