+4

Block\Remove access to user tab personalization

salazar8D 7 years ago updated by Curtis Conard 1 year ago 1

Hi everyone,

I would like to know if there is a way that can I block\remove the access of the tab personalizations from my users. I have done some modifications on the layout/rules and I don't want to the users alterate some preferences like: "Pre-select me as Technician when Creating Ticket" and stuffs.

I have found a way that I can do that, but I don't want to make the association on a user_id though... Maybe on a profile_id on something like that ?

Here it's my code edit:

glpi\front\preference.php -> Starts on line 67

if(Session::getLoginUserID() == 13){<br>$pref = new Preference(); $pref->display(['main_class' => 'tab_cadre_fixe']); }else{ echo '<div class="center">'; echo '<br>'; echo '<br>'; echo '<img src="/glpi/pics/warning.png" alt="Warning" title="Warning">'; echo '<br>'; echo '<br>'; echo '<span class="b">You don't have permission to do that.</span>'; echo '</div>'; }<br><br>

Thank you all

My setup: : GLPI 9.2.1 (/glpi => C:\xampp\htdocs\glpi) Installation mode: TARBALL

This was added in GLPI 9.4.0 as a Profile option