Author Topic: Allow Non Admin Access to Administration Area  (Read 2598 times)

andy.hoyle

  • Newbie
  • *
  • Posts: 30
    • View Profile
Allow Non Admin Access to Administration Area
« on: June 25, 2009, 11:04:35 am »
I have groups:

Admin
Managers
Users

My Managers (Group ID: 10000001) could not get into admin area because they were not admin - even though I had given this group permission to create their own workspaces.

Fix:
application/models/groups/Group.class.php - line 14:
Code: [Select]
++ const CONST_MANAGER_GROUP_ID = 10000001;
appication/models/users/Users.class.php - line 279:
Code: [Select]
-- $this->is_administrator = GroupUsers::isUserInGroup($this->getId(),Group::CONST_ADMIN_GROUP_ID );
++ $this->is_administrator = GroupUsers::isUserInGroup($this->getId(),Group::CONST_ADMIN_GROUP_ID ) ||
GroupUsers::isUserInGroup($this->getId(),Group::CONST_MANAGER_GROUP_ID );

My managers now have an Admin link and can only see the Workspace Icon in Administration area

:D
« Last Edit: June 25, 2009, 11:06:28 am by andy.hoyle »