
viewtopic.php?f=14&t=3723&hilit=mod#
Thanks
Of course it should say "please select"

Moderator: mkoch227
Wasnt this before? In Hesk users can only grant those permissions they already have. Administrators have access to all functions.Only admins with the "manage settings" permission can assign this permission to new/other users.
Thanks for creating some of the mods that were included into the latest version! (some I tweaked a little bit to make it easier to utilize/de-utilize the mods). Also, I'd be happy to help Klemen in any way for Hesk 3. He doesn't even have to pay mealcazar wrote: Seems like you build in some of our mods (as suggested), thanks.
Hopefully Master Klemen doesnt get jealous about it and hires you for Hesk 3
*/
Code: Select all
inc/admin_functions.inc.php
function hesk_checkPermission($feature,$showerror=1) {
....dang. I thought I changed that, but I guess I didn't. Expect a fix by v1.6.0alcazar wrote:Yes, you did change the permission_variable in the admin-settings-file and the user manager, but you should also change it in the function used for permissions.Since you use the standard function in your new file too, it will return true if the user is set as administrator, so they can access settings anyway.Code: Select all
inc/admin_functions.inc.php function hesk_checkPermission($feature,$showerror=1) {
Code: Select all
if ($feature == 'can_admin_setting') {
if (user_has_permission) {
return true;
} else {
return false;
}
}
Code: Select all
/* Admins have full access to all features */
if ($_SESSION['isadmin'])
{
return true;
}