aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-03-16 22:58:16 +0000
committerrub <rub@piwigo.org>2006-03-16 22:58:16 +0000
commit9b521760af7639310742d7817c4fb91b88471c5c (patch)
tree9260a834a927131ba184de330d4f8ecdfaafdcef /picture.php
parent5980db248ab4cc05e8596e07d7efc31048bcb8e8 (diff)
Step 7 improvement issue 0000301:
o can attribute status <= current user o define mode adviser => buttons disabled (gray on IE, not on FF) => truncated actions => display info mode adviser git-svn-id: http://piwigo.org/svn/trunk@1085 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/picture.php b/picture.php
index 432870611..c506d9d7e 100644
--- a/picture.php
+++ b/picture.php
@@ -169,7 +169,7 @@ DELETE FROM '.FAVORITES_TABLE.'
}
case 'set_as_representative' :
{
- if (is_admin() and isset($page['category']))
+ if (is_admin() and isset($page['category']) and !is_adviser())
{
$query = '
UPDATE '.CATEGORIES_TABLE.'
@@ -189,7 +189,10 @@ UPDATE '.CATEGORIES_TABLE.'
}
case 'add_to_caddie' :
{
- fill_caddie(array($page['image_id']));
+ if (!is_adviser())
+ {
+ fill_caddie(array($page['image_id']));
+ }
redirect($url_self);
break;
}