mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-10 23:19:06 -04:00
Document why we skip the parent state for the root album.
This commit is contained in:
@@ -33,6 +33,8 @@
|
||||
<? elseif ($intent === access::DENY): ?>
|
||||
<a href="javascript:set('allow',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)" class="gDenied">denied</a>
|
||||
<? elseif ($intent === access::ALLOW): ?>
|
||||
<? // skip over the "allowed/denied by parent" state when we're setting permissions on ?>
|
||||
<? // the root album, since it has no parent. ?>
|
||||
<? if ($item->id == 1): ?>
|
||||
<a href="javascript:set('deny',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)" class="gAllowed">allowed</a>
|
||||
<? else: ?>
|
||||
|
||||
Reference in New Issue
Block a user