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:
remicollet
2011-08-17 09:21:09 +00:00
parent f5992289ab
commit 55992d0d94
7 changed files with 17 additions and 18 deletions

View File

@ -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 {