Admin Only Access?
4 posts by 3 authors in: Forums > CMS Builder
Last Post: September 20, 2010 (RSS)
I'd like to restrict access to certain fields in the editor and make them available to "Admin Only".
As luck would have it there is an option to do this in every field in the editor. The trouble is, it doesn't do what it says on the tin...
Admin Only fields can be changed by Editors too!
Is there any way I can make a field truly "Admin Only"?
:0S
Perch
As luck would have it there is an option to do this in every field in the editor. The trouble is, it doesn't do what it says on the tin...
Admin Only fields can be changed by Editors too!
Is there any way I can make a field truly "Admin Only"?
:0S
Perch
Re: [Perchpole] Admin Only Access?
By Jason - September 17, 2010
Hi,
In CMS Builder doesn't support that by default. An editor will always have access to all of the fields in that section. If this is functionality that you really need, you can send an email to consulting@interactivetools.com and we can look into creating something custom for you.
Hope this helps.
In CMS Builder doesn't support that by default. An editor will always have access to all of the fields in that section. If this is functionality that you really need, you can send an email to consulting@interactivetools.com and we can look into creating something custom for you.
Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Jason Sauchuk - Project Manager
interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Jason] Admin Only Access?
Hi Perch,
Here's the change that you want. Dave helped me with this a while back.
When you upgrade, you'll have to make the changes again.
Hope that helps,
Jerry Kornbluth
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
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] Admin Only Access?
Thanks Jerry.
That was perfect.
Much appreciated.
Perch
That was perfect.
Much appreciated.
Perch