summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BitBlog.php7
-rw-r--r--BitBlogPost.php9
-rw-r--r--admin/schema_inc.php3
-rw-r--r--edit.php4
-rw-r--r--post.php4
5 files changed, 15 insertions, 12 deletions
diff --git a/BitBlog.php b/BitBlog.php
index 4515689..29d03f6 100644
--- a/BitBlog.php
+++ b/BitBlog.php
@@ -1,7 +1,7 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/BitBlog.php,v 1.69 2008/06/05 21:32:42 wjames5 Exp $
- * @version $Revision: 1.69 $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/BitBlog.php,v 1.70 2008/10/03 17:20:15 wjames5 Exp $
+ * @version $Revision: 1.70 $
* @package blogs
*/
@@ -35,7 +35,8 @@ class BitBlog extends LibertyContent {
// Permission setup
$this->mViewContentPerm = 'p_blogs_view';
- $this->mEditContentPerm = 'p_blogs_create';
+ $this->mEditContentPerm = 'p_blogs_edit';
+ $this->mCreateContentPerm = 'p_blogs_create';
$this->mAdminContentPerm = 'p_blogs_admin';
}
diff --git a/BitBlogPost.php b/BitBlogPost.php
index 57fc35f..8efa142 100644
--- a/BitBlogPost.php
+++ b/BitBlogPost.php
@@ -1,12 +1,12 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_blogs/BitBlogPost.php,v 1.131 2008/06/23 21:56:12 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_blogs/BitBlogPost.php,v 1.132 2008/10/03 17:20:15 wjames5 Exp $
*
* Copyright (c) 2004 bitweaver.org
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: BitBlogPost.php,v 1.131 2008/06/23 21:56:12 squareing Exp $
+ * $Id: BitBlogPost.php,v 1.132 2008/10/03 17:20:15 wjames5 Exp $
*
* Virtual base class (as much as one can have such things in PHP) for all
* derived tikiwiki classes that require database access.
@@ -16,7 +16,7 @@
*
* @author drewslater <andrew@andrewslater.com>, spiderr <spider@steelsun.com>
*
- * @version $Revision: 1.131 $ $Date: 2008/06/23 21:56:12 $ $Author: squareing $
+ * @version $Revision: 1.132 $ $Date: 2008/10/03 17:20:15 $ $Author: wjames5 $
*/
/**
@@ -50,7 +50,8 @@ class BitBlogPost extends LibertyMime {
// Permission setup
$this->mViewContentPerm = 'p_blogs_view';
- $this->mEditContentPerm = 'p_blogs_post';
+ $this->mCreateContentPerm = 'p_blogs_post';
+ $this->mEditContentPerm = 'p_blogs_edit';
$this->mAdminContentPerm = 'p_blogs_admin';
}
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 22912ed..5df0995 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -71,7 +71,8 @@ $gBitInstaller->registerSchemaSequences( BLOGS_PKG_NAME, $sequences );
$gBitInstaller->registerUserPermissions( BLOGS_PKG_NAME, array(
array('p_blogs_create', 'Can create a blog', 'registered', BLOGS_PKG_NAME),
array('p_blogs_create_is_public', 'Can create a public blog', 'editors', BLOGS_PKG_NAME),
- array('p_blogs_post', 'Can post to a blog', 'registered', BLOGS_PKG_NAME),
+ array('p_blogs_post', 'Can create a blog post', 'registered', BLOGS_PKG_NAME),
+ array('p_blogs_edit', 'Can edit blogs and blog posts', 'editors', BLOGS_PKG_NAME),
array('p_blogs_send_post', 'Can email a blog post', 'registered', BLOGS_PKG_NAME),
array('p_blogs_admin', 'Can admin blogs', 'editors', BLOGS_PKG_NAME),
array('p_blogs_view', 'Can read blogs', 'basic', BLOGS_PKG_NAME),
diff --git a/edit.php b/edit.php
index c4a7c23..90dc73c 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/edit.php,v 1.33 2008/06/25 22:21:07 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/edit.php,v 1.34 2008/10/03 17:20:15 wjames5 Exp $
* @package blogs
* @subpackage functions
*/
@@ -27,7 +27,7 @@ require_once( BLOGS_PKG_PATH.'lookup_blog_inc.php');
if( $gContent->isValid() ) {
$gContent->verifyEditPermission();
} else {
- $gBitSystem->verifyPermission( 'p_blogs_create' );
+ $gContent->verifyCreatePermission();
}
if (isset($_REQUEST['preview'])) {
diff --git a/post.php b/post.php
index e403d06..4b7c019 100644
--- a/post.php
+++ b/post.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.63 2008/09/19 01:34:36 laetzer Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_blogs/post.php,v 1.64 2008/10/03 17:20:15 wjames5 Exp $
* @package blogs
* @subpackage functions
@@ -34,7 +34,7 @@ if ( isset( $_REQUEST["blog_id"] ) ) {
if( $gContent->isValid() ) {
$gContent->verifyEditPermission();
} else {
- $gBitSystem->verifyPermission( 'p_blogs_post' );
+ $gContent->verifyCreatePermission();
}