mirror of
https://github.com/pluginsGLPI/example.git
synced 2026-10-13 13:17:21 +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:
1 parent
f5992289ab
commit
55992d0d94
7 files changed
+17
-18
No files matched your search
@@ -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