Commit e98c6d49 authored by Brett Wilkins's avatar Brett Wilkins

MaharaAuthPlugin: fix for function call

parent b2b866f6
...@@ -145,7 +145,7 @@ class MaharaAuthPlugin extends AuthPlugin { ...@@ -145,7 +145,7 @@ class MaharaAuthPlugin extends AuthPlugin {
$user->setRealName($val->firstname.' '.$val->lastname); $user->setRealName($val->firstname.' '.$val->lastname);
if ($val->admin == 1) { if ($val->admin == 1) {
$user->addGroup('sysop'); $user->addGroup('sysop');
} else if (in_array('sysop',$user->getGroups)) { } else if (in_array('sysop',$user->getGroups())) {
$user->removeGroup('sysop'); $user->removeGroup('sysop');
} }
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment