summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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">