summaryrefslogtreecommitdiff
path: root/content_history_inc.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2008-10-20 21:40:10 +0000
committerChristian Fowler <spider@viovio.com>2008-10-20 21:40:10 +0000
commited11087680259009849a80de9905a5450d5ce737 (patch)
tree4824d77ac7f2a52372186f9cbd846ea8aca33907 /content_history_inc.php
parentbe71adb10b7d5ce7d3f3d2008bfeec4112da2fac (diff)
downloadliberty-ed11087680259009849a80de9905a5450d5ce737.tar.gz
liberty-ed11087680259009849a80de9905a5450d5ce737.tar.bz2
liberty-ed11087680259009849a80de9905a5450d5ce737.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 'content_history_inc.php')
-rw-r--r--content_history_inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/content_history_inc.php b/content_history_inc.php
index d4b70c2..685532c 100644
--- a/content_history_inc.php
+++ b/content_history_inc.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Revision: 1.19 $
+ * @version $Revision: 1.20 $
* @package liberty
* @subpackage functions
*/
@@ -75,7 +75,7 @@ if( isset( $_REQUEST["delete"] ) && isset( $_REQUEST["hist"] )) {
$gBitSmarty->assign_by_ref( 'version_from', $from_version );
} elseif( @BitBase::verifyId( $_REQUEST["rollback"] )) {
- $gContent->verifyUserPermission( !empty( $rollbackPerm ) ? $rollbackPerm : $gContent->mEditContentPerm );
+ $gContent->verifyUserPermission( !empty( $rollbackPerm ) ? $rollbackPerm : $gContent->mUpdateContentPerm );
if( !isset( $_REQUEST["rollback_comment"] )) {
$_REQUEST["rollback_comment"] = '';
}