git checkout work of samir

This commit is contained in:
team-devstage 2020-09-15 14:57:29 +02:00
parent 6a4548485f
commit 69e7897fdd
3 changed files with 22 additions and 2 deletions

View File

@ -129,7 +129,6 @@ class AppController extends Controller
if ($this->Auth->user('id')) {
$GLOBALS['ServerUser'] = $this->Auth->user();
}
// login server url
$loginServer = Configure::read('LoginServer');
if ($loginServer && isset($loginServer['url'])) {

View File

@ -15,7 +15,7 @@ class ServerUsersController extends AppController
public function initialize()
{
parent::initialize();
//$this->Auth->allow(['add', 'edit']);
$this->Auth->allow(['add', 'edit']);
$this->Auth->deny('index');
}

View File

@ -111,4 +111,25 @@ $this->assign(
</div>
</div>
</div>
<div class="content-region">
<h3>Roles ...</h3>
<div class="content-collection">
<div class="content-item action-button">
<i class="material-icons-outlined">roles</i>
<?= $this->Html->link(
__('View'),
['controller' => 'Roles', 'action' => 'index'],
['class' => 'info-item-link']
); ?>
</div>
<div class="content-item action-button">
<i class="material-icons-outlined">assign_roles</i>
<?= $this->Html->link(
__('Assign Roles'),
['controller' => 'StateUserRoles', 'action' => 'search'],
['class' => 'info-item-link']
); ?>
</div>
</div>
</div>
<?php endif; ?>