Author Topic: Hide some options in settings from user  (Read 5351 times)

Offline jamil_isayyed

  • Jr. Member
  • **
  • Posts: 37
Hide some options in settings from user
« 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,899
    • SKaero - Custom Roundcube development
Re: Hide some options in settings from user
« Reply #1 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.

Offline jamil_isayyed

  • Jr. Member
  • **
  • Posts: 37
Re: Hide some options in settings from user
« Reply #2 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

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,899
    • SKaero - Custom Roundcube development
Re: Hide some options in settings from user
« Reply #3 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.

Offline jamil_isayyed

  • Jr. Member
  • **
  • Posts: 37
Re: Hide some options in settings from user
« Reply #4 on: November 22, 2012, 07:33:29 AM »
Yes it is working, thanks a lot.  :)