parent
5b4c2723e0
commit
e072678b2d
|
@ -15,7 +15,7 @@ class SecurityController extends ActionController
|
|||
$this->view->roles = Config::app('roles', true);
|
||||
}
|
||||
|
||||
public function newRoleAction()
|
||||
public function newAction()
|
||||
{
|
||||
$role = new RoleForm(array(
|
||||
'onSuccess' => function (RoleForm $role) {
|
||||
|
@ -42,7 +42,7 @@ class SecurityController extends ActionController
|
|||
$this->view->form = $role;
|
||||
}
|
||||
|
||||
public function updateRoleAction()
|
||||
public function updateAction()
|
||||
{
|
||||
$name = $this->_request->getParam('role');
|
||||
if (empty($name)) {
|
||||
|
@ -86,7 +86,7 @@ class SecurityController extends ActionController
|
|||
$this->view->form = $role;
|
||||
}
|
||||
|
||||
public function removeRoleAction()
|
||||
public function removeAction()
|
||||
{
|
||||
$name = $this->_request->getParam('role');
|
||||
if (empty($name)) {
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
<td>
|
||||
<?= $this->escape($name) ?>
|
||||
<div class="hidden">
|
||||
<a href="<?= $this->url('security/update-role', array('role' => $name)) ?>"></a>
|
||||
<a href="<?= $this->url('permissions/update', array('role' => $name)) ?>"></a>
|
||||
</div>
|
||||
</td>
|
||||
<td><?= $this->escape($role->permissions) ?></td>
|
||||
<td><?= $this->escape($role->users) ?></td>
|
||||
<td><?= $this->escape($role->groups) ?></td>
|
||||
<td>
|
||||
<a href="<?= $this->url('security/remove-role', array('role' => $name)) ?>">
|
||||
<a href="<?= $this->url('permissions/remove', array('role' => $name)) ?>">
|
||||
<?= $this->translate('Remove role') ?>
|
||||
</a>
|
||||
</td>
|
||||
|
@ -35,7 +35,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<?php endif ?>
|
||||
<a data-base-target="_next" href="<?= $this->href('security/new-role') ?>">
|
||||
<a data-base-target="_next" href="<?= $this->href('permissions/new') ?>">
|
||||
<?= $this->translate('New Role') ?>
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue