Commit 647e551f authored by Roman Ondráček's avatar Roman Ondráček

Core: hide User ID column for normal users

Signed-off-by: Roman Ondráček's avatarRoman Ondráček <ondracek.roman@centrum.cz>
parent 8dd41b9d
......@@ -73,8 +73,11 @@ class UserDataGridFactory {
$this->presenter = $presenter;
$grid = $this->dataGridFactory->create($presenter, $name);
$grid->setDataSource($this->manager->getUsers());
$grid->addColumnNumber('id', 'core.user.form.id')
->setAlign('left');
if ($this->presenter->getUser()->isInRole('power')) {
$grid->addColumnNumber('id', 'core.user.form.id')
->setAlign('left');
}
$grid->addColumnText('username', 'core.user.form.username');
if ($this->presenter->getUser()->isInRole('power')) {
$grid->addColumnStatus('role', 'core.user.form.userType')
......
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