Module: nagvis
Branch: master
Commit: a90f58df646c7319ff43b90eded2707f93ba96c2
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=a90f58df646c7319ff43b90eded2707f93ba96c2

Author: LaMi <[email protected]>
Date:   Sat Jan  9 19:38:15 2010 +0100

Added summarizing of new permissions

---

 .../core/classes/CoreAuthorisationHandler.php      |   25 ++++++++++++++++---
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/share/server/core/classes/CoreAuthorisationHandler.php 
b/share/server/core/classes/CoreAuthorisationHandler.php
index 089f363..75db9e9 100644
--- a/share/server/core/classes/CoreAuthorisationHandler.php
+++ b/share/server/core/classes/CoreAuthorisationHandler.php
@@ -37,24 +37,41 @@ class CoreAuthorisationHandler {
        private $AUTHENTICATION;
        
        private $summarizePerms = Array(
+               'MainCfg' => Array(
+                       'doEdit' => 'edit'
+               ),
                'Map' => Array(
                        'getMapProperties' => 'view',
                        'getMapObjects' => 'view',
-                       'getObjectStates' => 'view'
+                       'getObjectStates' => 'view',
+                       'doAdd' => 'add',
+                       'doEdit' => 'edit',
+                       'doRename' => 'edit',
+                       'doDelete' => 'edit',
+                       'modifyObject' => 'edit',
+                       'createObject' => 'edit',
+                       'deleteObject' => 'edit',
                ),
                'Overview' => Array(
                        'getOverviewRotations' => 'view',
                        'getOverviewProperties' => 'view',
                        'getOverviewMaps' => 'view',
-                       'getOverviewAutomaps' => 'view'
+                       'getOverviewAutomaps' => 'view',
                ),
                'AutoMap' => Array(
                        'getAutomapProperties' => 'view',
                        'getAutomapObjects' => 'view',
-                       'getObjectStates' => 'view'
+                       'getObjectStates' => 'view',
+                       'doAdd' => 'add',
+                       'doEdit' => 'edit',
+                       'doRename' => 'edit',
+                       'doDelete' => 'edit',
+                       'modifyObject' => 'edit',
+                       'createObject' => 'edit',
+                       'deleteObject' => 'edit',
                ),
                'ChangePassword' => Array(
-                       'view' => 'change'
+                       'view' => 'change',
                ),
                'UserMgmt' => Array(
                        'view' => 'manage',


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to