mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 05:01:04 -04:00
Rename permission_xxx to permissions_xxx for consistency
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<form method="post" action="<?= url::site("permissions/edit/$item->id") ?>">
|
||||
<?= access::csrf_form_field() ?>
|
||||
|
||||
<table border=1>
|
||||
<tr>
|
||||
<th> </th>
|
||||
<? foreach ($groups as $group): ?>
|
||||
<th> <?= $group->name ?> </th>
|
||||
<? endforeach ?>
|
||||
</tr>
|
||||
|
||||
<? foreach ($permissions as $permission): ?>
|
||||
<tr>
|
||||
<td> <?= _($permission->display_name) ?> </td>
|
||||
<? foreach ($groups as $group): ?>
|
||||
<td>
|
||||
<? $locked = access::locking_items($group, $permission->name, $item) ?>
|
||||
<? $allowed = access::group_can($group, $permission->name, $item) ?>
|
||||
<? if ($locked && $allowed): ?>
|
||||
allowed <a href="#">locked</a>
|
||||
<? elseif ($locked && !$allowed): ?>
|
||||
denied <a href="#">locked</a>
|
||||
<? elseif ($allowed): ?>
|
||||
<a href="#">allowed</a>
|
||||
<? elseif (!$allowed): ?>
|
||||
<a href="#">denied</a>
|
||||
<? endif ?>
|
||||
</td>
|
||||
<? endforeach ?>
|
||||
</tr>
|
||||
<? endforeach ?>
|
||||
</table>
|
||||
</form>
|
||||
Reference in New Issue
Block a user