diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-10 20:16:18 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-10 20:16:18 +0000 |
commit | 99da170defd6482221502294cfafcca9c1c5a776 (patch) | |
tree | f2402d608dc4ae67285b002b8d950da39207471c | |
parent | 31f0839f9b7c64707a88636e49840c196742768b (diff) |
Document why we skip the parent state for the root album.
-rw-r--r-- | core/views/permissions_form.html.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/views/permissions_form.html.php b/core/views/permissions_form.html.php index daad272f..b1f37dc0 100644 --- a/core/views/permissions_form.html.php +++ b/core/views/permissions_form.html.php @@ -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: ?> |