Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: jamil_isayyed on November 22, 2012, 03:47:24 AM

Title: Hide some options in settings from user
Post by: jamil_isayyed on November 22, 2012, 03:47:24 AM
Hello All,

i have recently update my webmail to roundcube 0.8.4, when i checked the settings in it,  there is a lot of options that the user can change,
i need to restrict users from  changes all these values, so please any idea how i can do it??

i checked in the configration file main.inc.php, but i didn't find any way...

i appreciate your help :D

Thanks
Jamil Isayyed
Title: Re: Hide some options in settings from user
Post by: SKaero on November 22, 2012, 05:11:59 AM
Add the settings you don't want users to change to the $rcmail_config['dont_override'] array in <RC root>/config/main.inc.php.
Title: Re: Hide some options in settings from user
Post by: jamil_isayyed on November 22, 2012, 05:21:31 AM
thanks SKaero for Replaying,

i can not find this option of configration in the main.inc.php. is it available??

so i need to add like $rcmail_config['dont_override']  = array('obj1','obj2'), were obj1 and obj2 is the names of the configs that i do not want to override.??

and when i add this config option, is the property will also be shown in the settings panels or tabs??

Thanks,
BR,
jamil Isayyed
Title: Re: Hide some options in settings from user
Post by: SKaero on November 22, 2012, 05:42:45 AM
Depending on how far you have updated RoundCube the $rcmail_config['dont_override'] may not appear in the config file but you should be able to add it. When you add the configuration options you don't want users to override to the array they will be hidden from the interface.
Title: Re: Hide some options in settings from user
Post by: jamil_isayyed on November 22, 2012, 07:33:29 AM
Yes it is working, thanks a lot.  :)