summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-04-11 17:52:11 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-04-11 17:52:11 +0000
commitb2a5f41e7c8da4482af478297a9ebf76aa4172c6 (patch)
tree0357246ef9afdaf826735a11b25a4934ea9634ab
parent90dbfe51c1c1d08cb8206188cbe543f1063db0ba (diff)
downloadthemes-b2a5f41e7c8da4482af478297a9ebf76aa4172c6.tar.gz
themes-b2a5f41e7c8da4482af478297a9ebf76aa4172c6.tar.bz2
themes-b2a5f41e7c8da4482af478297a9ebf76aa4172c6.zip
more permissions housekeeping and tidyup
-rw-r--r--BitThemes.php2
-rw-r--r--templates/admin_themes_manager.tpl18
2 files changed, 1 insertions, 19 deletions
diff --git a/BitThemes.php b/BitThemes.php
index 06fd64d..48ef3ed 100644
--- a/BitThemes.php
+++ b/BitThemes.php
@@ -381,7 +381,7 @@ class BitThemes extends BitBase {
}
// security check
- if( ($gBitUser->isAdmin() || ( $pUserId && $gBitUser->mUserId==$pUserId ) || $gBitUser->object_has_permission( $gBitUser->mUserId, $gQueryUser->mInfo['content_id'], 'bituser', 'bit_p_admin_user') ) && is_numeric( $pModuleId ) ) {
+ if( ($gBitUser->isAdmin() || ( $pUserId && $gBitUser->mUserId==$pUserId ) || $gBitUser->object_has_permission( $gBitUser->mUserId, $gQueryUser->mInfo['content_id'], 'bituser', 'p_users_admin') ) && is_numeric( $pModuleId ) ) {
$query = "DELETE FROM `".BIT_DB_PREFIX."themes_layouts` where `module_id`=? $userSql $layoutSql";
$result = $this->mDb->query( $query, $binds );
}
diff --git a/templates/admin_themes_manager.tpl b/templates/admin_themes_manager.tpl
index 4764315..9e97b15 100644
--- a/templates/admin_themes_manager.tpl
+++ b/templates/admin_themes_manager.tpl
@@ -84,24 +84,6 @@
{/form}
{/jstab}
- {if $gBitSystem->isPackageActive( 'stylist' ) and $gBitUser->hasPermission( 'bit_p_use_stylist' )}
- {jstab title="Edit Theme"}
- {form legend="Edit Theme" ipackage="stylist" ifile="index.php"}
- <div class="row">
- {formlabel label="Edit theme" for="c_style"}
- {forminput}
- {html_options name="c_style" id="c_style" output=$styles values=$styles}
- {formhelp note="You can edit your theme using the package <a href=\"http://www.bitweaver.org/wiki/index.php?page=StylistPackage\">stylist</a>."}
- {/forminput}
- </div>
-
- <div class="row submit">
- <input type="submit" name="stylistTabSubmit" value="{tr}Edit{/tr}" />
- </div>
- {/form}
- {/jstab}
- {/if}
-
{jstab title="Delete Theme"}
{form legend="Delete Theme"}
<div class="row">