Re: [Jason] Admin Only Access?
Hi Perch,
Here's the change that you want. Dave helped me with this a while back.
- Open /cmsAdmin/lib/menus/default/edit_functions.php
- Search for "!$CURRENT_USER['isAdmin'] && !$GLOBALS['hasEditorAccess']" and remove the code listed:
if (@$fieldHash['adminOnly'] && !$CURRENT_USER['isAdmin'] && !$GLOBALS['hasEditorAccess']) { continue; } // skip admin only fields
(remove && !$GLOBALS['hasEditorAccess'] from the line.)
- Open /cmsAdmin/lib/menus/default/save.php
- Search for "!$CURRENT_USER['isAdmin'] && !$GLOBALS['hasEditorAccess']" and remove the crossed out code (two lines):
if (@$fieldSchema['adminOnly'] && !$CURRENT_USER['isAdmin'] && !$GLOBALS['hasEditorAccess']) { continue; } // skip admin only fields
if (@$fieldSchema['adminOnly'] && !$CURRENT_USER['isAdmin'] && !$GLOBALS['hasEditorAccess']) { continue; } // skip admin only fields
(remove && !$GLOBALS['hasEditorAccess'] from both lines. )
When you upgrade, you'll have to make the changes again.
Hope that helps,
Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php