Show warning in case user can only display privileges
Fixes #13442 Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
parent
54466d68c6
commit
41b045f130
@ -138,6 +138,11 @@ if (!$GLOBALS['is_superuser'] && !$GLOBALS['is_grantuser']
|
||||
);
|
||||
exit;
|
||||
}
|
||||
if (! $GLOBALS['is_grantuser'] && !$GLOBALS['is_createuser']) {
|
||||
$response->addHTML(Message::notice(
|
||||
__('You do not have privileges to manipulate with the users!')
|
||||
)->getDisplay());
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the user is using "Change Login Information / Copy User" dialog
|
||||
|
||||
Loading…
Reference in New Issue
Block a user