summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-09-11 01:32:19 +0000
committerChristian Fowler <spider@viovio.com>2007-09-11 01:32:19 +0000
commit55e75ea5e1015fe0bd8519121ea2e3e0c641456e (patch)
tree4442054e675a73055ee35b1dbe777f201e8ed712 /post.php
parent0ca9c3fdac94483b91a7d37722d49ca5bae90e93 (diff)
downloadblogs-55e75ea5e1015fe0bd8519121ea2e3e0c641456e.tar.gz
blogs-55e75ea5e1015fe0bd8519121ea2e3e0c641456e.tar.bz2
blogs-55e75ea5e1015fe0bd8519121ea2e3e0c641456e.zip
revert to hasEditPermission()
Diffstat (limited to 'post.php')
-rw-r--r--post.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/post.php b/post.php
index 8c08faf..97a9fab 100644
--- a/post.php
+++ b/post.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.46 2007/09/07 20:36:25 wjames5 Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.47 2007/09/11 01:32:19 spiderr Exp $
* @package blogs
* @subpackage functions
@@ -23,10 +23,8 @@ require_once( BLOGS_PKG_PATH.'BitBlog.php');
$gBlog = new BitBlog();
//must be owner or admin to edit an existing post
-if (!empty($_REQUEST['post_id']) || !empty($_REQUEST['content_id'])) {
- if ( !$gContent->isOwner() && !$gBitUser->hasPermission( 'p_blogs_admin' ) ){
- $gBitSystem->fatalError( tra( "You do not have permission to edit this post!" ));
- }
+if( $gContent->isValid() && !$gContent->hasEditPermission() ) {
+ $gBitSystem->fatalError( tra( "You do not have permission to edit this post" ));
}
// Editing page needs general ticket verification