summaryrefslogtreecommitdiff
path: root/core/views
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-10 07:05:49 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-10 07:05:49 +0000
commit18a6614a11cf39a29f5705edabc710688da357e6 (patch)
tree26bcc7c8f81c5f9f948ded7a07b3be41ca370e4c /core/views
parent09364348c7ddb5cd46c3f63ea71467e7b49d0c34 (diff)
Change all access API methods to take ORMs instead of ids. This will
minimize reloading objects from the database.
Diffstat (limited to 'core/views')
-rw-r--r--core/views/welcome.html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php
index a0c4500b..47d9bd84 100644
--- a/core/views/welcome.html.php
+++ b/core/views/welcome.html.php
@@ -354,7 +354,7 @@
<?= html::anchor("albums/{$current->album->id}", $current->album->title) ?>
&raquo;
<? foreach (array("view", "edit") as $perm): ?>
- <? if (access::group_can(group::EVERYBODY, $perm, $current->album->id)): ?>
+ <? if (access::group_can(group::EVERYBODY, $perm, $current->album)): ?>
<?= html::anchor("welcome/deny_perm/0/$perm/{$current->album->id}", strtoupper($perm), array("class" => "allowed")) ?>
<? else: ?>
<?= html::anchor("welcome/add_perm/0/$perm/{$current->album->id}", strtolower($perm), array("class" => "denied")) ?>