From 983baeac4a05417797606074aa52d3316cf9d9d3 Mon Sep 17 00:00:00 2001 From: wjames5 Date: Thu, 2 Oct 2008 16:06:23 +0000 Subject: call verifyEdit and verifyView directly instead of generic verifyPermission --- list_blogs.php | 4 ++-- send_post.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/list_blogs.php b/list_blogs.php index 5518f48..099aa77 100644 --- a/list_blogs.php +++ b/list_blogs.php @@ -1,6 +1,6 @@ isValid() && isset($_REQUEST["remove"])) { $gBitSystem->setBrowserTitle(tra("Delete Blog")); // Check if has edit perm of this blog - $gContent->verifyPermission( 'p_blog_edit' ); + $gContent->verifyEditPermission(); if( !empty( $_REQUEST['cancel'] ) ) { // user cancelled - just continue on, doing nothing } elseif( empty( $_REQUEST['confirm'] ) ) { diff --git a/send_post.php b/send_post.php index 348f50a..e90fa71 100644 --- a/send_post.php +++ b/send_post.php @@ -1,6 +1,6 @@ verifyPermission( 'p_blogs_view' ); +$gContent->verifyViewPermission(); $gBitSmarty->assign('post_info', $gContent->mInfo ); -- cgit v1.3