mirror of
https://github.com/pluginsGLPI/example.git
synced 2026-10-13 13:17:21 +02:00
Removed syntax error
This commit is contained in:
1 parent
e675d14d03
commit
4292065c4e
1 file changed
+1
-1
@@ -57,7 +57,7 @@ class PluginExampleComputer extends CommonDBTM {
|
||||
|
||||
static function item_can($item) {
|
||||
|
||||
if (($item-getType() == 'Computer')
|
||||
if (($item->getType() == 'Computer')
|
||||
&& ($item->right == READ)
|
||||
&& ($item->fields['groups_id'] > 0)
|
||||
&& !in_array($item->fields['groups_id'], $_SESSION["glpigroups"])) {
|
||||
|
||||
Reference in new issue
Block a user