UserController: Apply permission config/application/users/edit

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-27 10:27:48 +02:00
parent 88ba718ffb
commit 01b790cf18
2 changed files with 2 additions and 1 deletions

View File

@ -175,6 +175,7 @@ class UserController extends AuthBackendController
*/
public function editAction()
{
$this->assertPermission('config/application/users/edit');
$userName = $this->params->getRequired('user');
$backend = $this->getUserBackend($this->params->getRequired('backend'), 'Icinga\Data\Updatable');

View File

@ -4,7 +4,7 @@ use Icinga\Data\Updatable;
use Icinga\Data\Reducible;
$editLink = null;
if ($backend instanceof Updatable) {
if ($this->hasPermission('config/application/users/edit') && $backend instanceof Updatable) {
$editLink = $this->qlink(
null,
'user/edit',