summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2008-10-20 21:40:09 +0000
committerChristian Fowler <spider@viovio.com>2008-10-20 21:40:09 +0000
commit1b2e961896cf7c27ea7b6cdec89e8d6d7e13e921 (patch)
treec335418f827100e307c9350ab9a53563f5151148 /templates
parentabdd183957f633cbba1a2e0fbe4b37931abbd697 (diff)
downloadblogs-1b2e961896cf7c27ea7b6cdec89e8d6d7e13e921.tar.gz
blogs-1b2e961896cf7c27ea7b6cdec89e8d6d7e13e921.tar.bz2
blogs-1b2e961896cf7c27ea7b6cdec89e8d6d7e13e921.zip
BIG CHANGE: migrate p_*_edit permissions to p_*_update permission naming convention, hasEditPermission is now hasUpdatePermission, many explicit perm checks have been cleaned up to hasUpdatePermission
Diffstat (limited to 'templates')
-rw-r--r--templates/view_blog.tpl6
-rw-r--r--templates/view_blog_post.tpl2
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/view_blog.tpl b/templates/view_blog.tpl
index a12a373..dda421d 100644
--- a/templates/view_blog.tpl
+++ b/templates/view_blog.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/view_blog.tpl,v 1.23 2007/04/10 03:44:40 wjames5 Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_blogs/templates/view_blog.tpl,v 1.24 2008/10/20 21:40:09 spiderr Exp $ *}
{strip}
<div class="display blogs">
<div class="floaticon">
@@ -12,7 +12,7 @@
<a title="{tr}RSS feed{/tr}" href="{$smarty.const.BLOGS_PKG_URL}blogs_rss.php?blog_id={$gContent->mBlogId}">{biticon ipackage="rss" iname="rss-16x16" iexplain="RSS feed"}</a>
{/if}
- {if $gContent->hasEditPermission()}
+ {if $gContent->hasUpdatePermission()}
<a title="{tr}Edit blog{/tr}" href="{$smarty.const.BLOGS_PKG_URL}edit.php?blog_id={$gContent->mBlogId}">{biticon ipackage="icons" iname="document-properties" iexplain="edit"}</a>
{/if}
@@ -24,7 +24,7 @@
{/if}
{/if}
- {if ($gContent->hasEditPermission())}
+ {if ($gContent->hasUpdatePermission())}
<a title="{tr}remove{/tr}" href="{$smarty.const.BLOGS_PKG_URL}list_blogs.php?remove=1&amp;blog_id={$gContent->getField('blog_id')}">{biticon ipackage="icons" iname="edit-delete" iexplain="delete"}</a>
{/if}
</div>
diff --git a/templates/view_blog_post.tpl b/templates/view_blog_post.tpl
index d0a0491..3979ecb 100644
--- a/templates/view_blog_post.tpl
+++ b/templates/view_blog_post.tpl
@@ -34,7 +34,7 @@
<a title="{tr}Email This Post{/tr}" href="{$smarty.const.BLOGS_PKG_URL}send_post.php?post_id={$post_info.post_id}">{biticon ipackage="icons" iname="mail-forward" iexplain="Email This Post"}</a>
{/if}
- {if $gContent->hasEditPermission()}
+ {if $gContent->hasUpdatePermission()}
<a title="{tr}Edit{/tr}" href="{$smarty.const.BLOGS_PKG_URL}post.php?blog_id={$post_info.blog_id}&amp;post_id={$post_info.post_id}">{biticon ipackage="icons" iname="accessories-text-editor" iexplain="edit"}</a>
{/if}
{if $gContent->hasUserPermission( 'p_blogs_admin' )}