mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
call functions (by Yllen)
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@168 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
4
hook.php
4
hook.php
@ -39,10 +39,10 @@
|
||||
function plugin_change_profile_example() {
|
||||
|
||||
// For example : same right of computer
|
||||
if (haveRight('computer','w')) {
|
||||
if (Session::haveRight('computer','w')) {
|
||||
$_SESSION["glpi_plugin_example_profile"] = array('example' => 'w');
|
||||
|
||||
} else if (haveRight('computer','r')) {
|
||||
} else if (Session::haveRight('computer','r')) {
|
||||
$_SESSION["glpi_plugin_example_profile"] = array('example' => 'r');
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user