Show warning in case user can only display privileges

Fixes #13442

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-07-18 14:53:46 +02:00
parent 54466d68c6
commit 41b045f130

View File

@ -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