Page 1 of 1
HESK Settings
Posted: Sat Apr 26, 2014 2:20 pm
by bastiaan.c
Hi,
In our HESK System more admins can login... some of them should really not be allowed to edit the settings.
Question:
How to switch off the tabs: general and email.
Thanks

Re: HESK Settings
Posted: Sat Apr 26, 2014 3:45 pm
by Klemen
In that case you will need to create staff accounts, not administrator accounts, and limit access to the settings page only to users you want to give access to.
Re: HESK Settings
Posted: Sat Apr 26, 2014 4:04 pm
by bastiaan.c
But what if they do needs access to settings...? only not the info like for example the database settings
Re: HESK Settings
Posted: Sat Apr 26, 2014 5:17 pm
by Klemen
Then this is something you will need to modify yourself, HESK can only be setup to allow access to all features or none.
Re: HESK Settings
Posted: Sun Apr 27, 2014 1:27 pm
by alcazar
This is ok, many ITS differ only when using tickets/departments, the rest is "all or nothing"

We modified it a bit, so only the god_admin (UID 1) has access to settings, since noone else need it.
But one suggestion you may consider for next updates (i. e. Hesk 3) would be to remove database settings.
If one want to edit them, they can edit the approbiate file (like most scripts do).
Re: HESK Settings
Posted: Sun Apr 27, 2014 8:36 pm
by bastiaan.c
Hi Alcazar,
Would you mind sharing your modification on this one??
Thanks

Re: HESK Settings
Posted: Mon Apr 28, 2014 9:33 am
by alcazar
Its not that difficult
In file "inc/show_admin_nav.inc.php" you have to replace
Code: Select all
if (hesk_checkPermission('can_man_settings',0))
with
and in files "admin/admin_settings.php" and "admin/admin_settings_save.php"
Code: Select all
hesk_checkPermission('can_man_settings');
with
Code: Select all
if($_SESSION['id'] != 1) {
hesk_error($hesklang['no_permission'].'<p> </p><p align="center"><a href="index.php">'.$hesklang['click_login'].'</a>');
}
Note: this is using the default admin-dir. If you renamed it, change the path accordingly.
Re: HESK Settings
Posted: Mon Apr 28, 2014 10:48 am
by bastiaan.c
Thanks a lot. I does what I needed
