Fix rights

This commit is contained in:
Johan Cwiklinski authored and Johan Cwiklinski committed 2017-05-19 16:04:34 +02:00
1 parent 46a15511a2
commit e8acb472eb
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -36,10 +36,10 @@
// And to save it in the session
function plugin_change_profile_example() {
// For example : same right of computer
if (Session::haveRight('computer', 'w')) {
if (Session::haveRight('computer', UPDATE)) {
$_SESSION["glpi_plugin_example_profile"] = array('example' => 'w');
} else if (Session::haveRight('computer', 'r')) {
} else if (Session::haveRight('computer', READ)) {
$_SESSION["glpi_plugin_example_profile"] = array('example' => 'r');
} else {