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 {
$user->setRealName($val->firstname.' '.$val->lastname);
if ($val->admin == 1) {
$user->addGroup('sysop');
} else if (in_array('sysop',$user->getGroups)) {
} else if (in_array('sysop',$user->getGroups())) {
$user->removeGroup('sysop');
}
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