aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-09-25 00:30:42 +0000
committerrvelices <rv-github@modusoptimus.com>2008-09-25 00:30:42 +0000
commitc15f6faced7691ce67015fe1d1b61ff270ae5f96 (patch)
treeb5951e57c89b872e84ebac4888b69518509ccc9f /admin
parent5adad7565c9c169dd623bac6704121f7d6aba151 (diff)
- some checks for admins that are advisers (no write access)
- send the charset in http header for web services - tag name becomes an xml attribute instead of content for tags.getList and related tags in images.getInfo (more logical and coherent with tags.getAdminList) git-svn-id: http://piwigo.org/svn/trunk@2585 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/menubar.php4
-rw-r--r--admin/template/goto/menubar.tpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/admin/menubar.php b/admin/menubar.php
index 9873fb8f6..1bf4a61c0 100644
--- a/admin/menubar.php
+++ b/admin/menubar.php
@@ -64,7 +64,7 @@ foreach ($mb_conf as $id => $pos)
unset($mb_conf[$id]);
}
-if ( isset($_POST['reset']) )
+if ( isset($_POST['reset']) and !is_adviser())
{
$mb_conf = array();
$query = '
@@ -85,7 +85,7 @@ foreach ($reg_blocks as $id => $block)
}
-if ( isset($_POST['submit']) )
+if ( isset($_POST['submit']) and !is_adviser() )
{
foreach ( $mb_conf as $id => $pos )
{
diff --git a/admin/template/goto/menubar.tpl b/admin/template/goto/menubar.tpl
index 29f546e16..7ce3d29e7 100644
--- a/admin/template/goto/menubar.tpl
+++ b/admin/template/goto/menubar.tpl
@@ -24,7 +24,7 @@
{/foreach}
</table>
<p>
- <input type="submit" name="submit" value="{'Submit'|@translate}" >
- <input type="submit" name="reset" value="{'Reset'|@translate}" >
+ <input type="submit" name="submit" value="{'Submit'|@translate}" {$TAG_INPUT_ENABLED}/>
+ <input type="submit" name="reset" value="{'Reset'|@translate}" {$TAG_INPUT_ENABLED}/>
</p>
</form> \ No newline at end of file