Admins can add new users to usergroup system
new users meaning users who aren't in the usergroup system for the website yet. also spicier no access messages
This commit is contained in:
@@ -16,7 +16,7 @@ $attrs = $as->getAttributes();
|
||||
$uname = $attrs['uid'][0];
|
||||
|
||||
if(!$userManager->hasGroup($uname, 'prosjekt')){
|
||||
echo 'Ingen tilgang';
|
||||
echo 'Her har du ikke lov\'t\'å\'værra!!!';
|
||||
exit();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user