HESK Settings

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

HESK Settings

Post 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 :-)
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK Settings

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: HESK Settings

Post by bastiaan.c »

But what if they do needs access to settings...? only not the info like for example the database settings
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK Settings

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: HESK Settings

Post by alcazar »

This is ok, many ITS differ only when using tickets/departments, the rest is "all or nothing" :P
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).
Alcazar
(nach Diktat spazierengegangen)
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: HESK Settings

Post by bastiaan.c »

Hi Alcazar,

Would you mind sharing your modification on this one??
Thanks :oops:
alcazar
Posts: 81
Joined: Mon May 27, 2013 6:36 pm

Re: HESK Settings

Post by alcazar »

Its not that difficult :P

In file "inc/show_admin_nav.inc.php" you have to replace

Code: Select all

if (hesk_checkPermission('can_man_settings',0))
with

Code: Select all

if ($_SESSION['id'] == 1)
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>&nbsp;</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.
Alcazar
(nach Diktat spazierengegangen)
bastiaan.c
Posts: 142
Joined: Sat Jun 22, 2013 9:24 pm

Re: HESK Settings

Post by bastiaan.c »

Thanks a lot. I does what I needed :-)
Post Reply