You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2012-10-16 15:03:20

glpi.al
Member
Registered: 2012-10-16
Posts: 78

In Public Note a Post Only user can see dropdown

A Post Only user in the Public Note section, even if he cannot set anything, he can see the dropdown menu with the Entity, Users, Group and Profile.

Is it possible to hide the visibility section in this case?
For the knowledge base this section is not visible to the Post Only profile.

The function that controls this is the showVisibility() in the reminder.class.php.

To workaround I added this line in reminder.class.php:

if ($_SESSION["glpiname"] == "administrator.name") {
$types = array( 'Group', 'Profile', 'User', 'Entity');
}

to hide the dropdown to other users.

Is there a fix to this?
Best Regards.

Offline

#2 2012-10-16 15:29:30

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: In Public Note a Post Only user can see dropdown

Yes you are right.
Issue created here : https://forge.indepnet.net/issues/3947


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#3 2012-10-16 15:33:33

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: In Public Note a Post Only user can see dropdown

fix here : https://forge.indepnet.net/projects/glp … ions/19521
will be available on 0.83.6


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

Board footer

Powered by FluxBB