Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r319 - registry/trunk/app/Controller

Subject: COmanage Developers List

List archive

[comanage-dev] r319 - registry/trunk/app/Controller


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r319 - registry/trunk/app/Controller
  • Date: Thu, 19 Jul 2012 23:05:45 -0400

Author: benno
Date: 2012-07-19 23:05:45 -0400 (Thu, 19 Jul 2012)
New Revision: 319

Modified:
registry/trunk/app/Controller/AppController.php
registry/trunk/app/Controller/PagesController.php
Log:
Fix menu permissions (CO-372)

Modified: registry/trunk/app/Controller/AppController.php
===================================================================
--- registry/trunk/app/Controller/AppController.php 2012-07-20 02:37:37
UTC (rev 318)
+++ registry/trunk/app/Controller/AppController.php 2012-07-20 03:05:45
UTC (rev 319)
@@ -1134,6 +1134,12 @@
// Manage any CO (or COU) population?
$p['menu']['petitions'] = $cmr['admin'] || $cmr['subadmin'];

+ // Manage CO extended attributes?
+ $p['menu']['extattrs'] = $cmr['admin'];
+
+ // Manage CO extended typees?
+ $p['menu']['exttypes'] = $cmr['admin'];
+
// Manage CO ID Assignment?
$p['menu']['idassign'] = $cmr['admin'];


Modified: registry/trunk/app/Controller/PagesController.php
===================================================================
--- registry/trunk/app/Controller/PagesController.php 2012-07-20 02:37:37
UTC (rev 318)
+++ registry/trunk/app/Controller/PagesController.php 2012-07-20 03:05:45
UTC (rev 319)
@@ -96,50 +96,9 @@
$p = array();

// Permission to render this page
- // We currently only route the main menu through here, so
always allow display
+ // We currently only route the welcome page through here, so
always allow display.
$p['display'] = true;

- // Determine what menu options this user can see
-
- // View own (Org) profile?
- $p['menu']['orgprofile'] = $cmr['user'];
-
- // View/Edit own (CO) profile?
- $p['menu']['coprofile'] = $cmr['user'];
-
- // View/Edit CO groups?
- $p['menu']['cogroups'] = $cmr['user'];
-
- // Manage org identity data?
- $p['menu']['orgidentities'] = $cmr['admin'] ||
$cmr['subadmin'];
-
- // Manage any CO (or COU) population?
- $p['menu']['cos'] = $cmr['admin'] || $cmr['subadmin'];
-
- // Manage CO extended attributes?
- $p['menu']['extattrs'] = $cmr['admin'];
-
- // Manage CO extended typees?
- $p['menu']['exttypes'] = $cmr['admin'];
-
- // Manage COU definitions?
- $p['menu']['cous'] = $cmr['admin'];
-
- // Manage CO enrollment flow definitions?
- $p['menu']['coef'] = $cmr['admin'];
-
- // Manage CO identifier assignment definitions?
- $p['menu']['idassign'] = $cmr['admin'];
-
- // Admin COmanage?
- $p['menu']['admin'] = $cmr['cmadmin'];
-
- // Manage NSF Demographics?
- $p['menu']['co_nsf_demographics'] = $cmr['cmadmin'];
-
- // View/Edit own Demographics profile?
- $p['menu']['nsfdemoprofile'] = $cmr['user'];
-
$this->set('permissions', $p);
return($p[$this->action]);
}



  • [comanage-dev] r319 - registry/trunk/app/Controller, svnlog, 07/19/2012

Archive powered by MHonArc 2.6.16.

Top of Page