diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-29 22:47:15 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-29 22:47:15 +0000 |
commit | 4271f7702a2754d8470949209f2db82990eb2d1a (patch) | |
tree | 6c7bc6933f58a0462373f550d219ab07308d51f4 /core/views | |
parent | 6c2869f8227944e56b6bb73da0d72b4c52f87da9 (diff) |
Add access model (not fully baked yet).
Update scaffolding to allow addition of just albums (helpful for testing permissions)
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/welcome.html.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php index 5e683690..61c87c8b 100644 --- a/core/views/welcome.html.php +++ b/core/views/welcome.html.php @@ -214,6 +214,13 @@ <p> add: [ <? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?> + <?= html::anchor("welcome/add_albums_and_photos/$count/album", "$count") ?> + <? endforeach ?> + ] albums only + </p> + <p> + add: [ + <? foreach (array(1, 10, 50, 100, 500, 1000) as $count): ?> <?= html::anchor("welcome/add_comments/$count", "$count") ?> <? endforeach ?> ] comments @@ -328,6 +335,14 @@ <ul> <li> <?= html::anchor("albums/{$current->album->id}", $current->album->title) ?> + <? foreach (ORM::factory("item")->list_fields("items") as $field => $info): ?> + <? if (!strncmp($field, "view_", 5)): ?> + [<?= $field ?>=<?= $current->album->$field ?>] + <? endif ?> + <? endforeach ?> + <? foreach (ORM::factory("access")->where("item_id", $current->album->id)->find() as $access): ?> + [ <?= $access->id ?> ] + <? endforeach ?> <? $stack[] = "CLOSE"; ?> <? if ($current->children): ?> <? $stack = array_merge($stack, $current->children) ?> |