summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorSylvie Greverend <sylvieg@users.sourceforge.net>2006-06-11 12:48:24 +0000
committerSylvie Greverend <sylvieg@users.sourceforge.net>2006-06-11 12:48:24 +0000
commit1f796f9c46c7590239f737c51d10fe90354a0053 (patch)
tree4d6245bde38892542a6d585700c3c29e16324123 /edit.php
parent04a8e6da50ed5b1692e436f579c3dbd3c2570801 (diff)
downloadarticles-1f796f9c46c7590239f737c51d10fe90354a0053.tar.gz
articles-1f796f9c46c7590239f737c51d10fe90354a0053.tar.bz2
articles-1f796f9c46c7590239f737c51d10fe90354a0053.zip
error string can not submit an article instead can not edit this article if no selected article
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/edit.php b/edit.php
index d0dcfef..c4e5f92 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_articles/edit.php,v 1.29 2006/05/31 19:49:14 sylvieg Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_articles/edit.php,v 1.30 2006/06/11 12:48:24 sylvieg Exp $
* @package article
* @subpackage functions
*/
@@ -34,7 +34,11 @@ if( $gBitUser->hasPermission('p_articles_admin' ) || $gBitUser->hasPermission( '
// Now check permissions to access this page
if( !$isOwner ) {
- $gBitSmarty->assign( 'msg', tra( "Permission denied you cannot edit this article" ) );
+ if ( empty( $gContent->mArticleId ) ) {
+ $gBitSmarty->assign( 'msg', tra( "Permission denied you cannot submit an article" ) );
+ } else {
+ $gBitSmarty->assign( 'msg', tra( "Permission denied you cannot edit this article" ) );
+ }
$gBitSystem->display( "error.tpl" );
die;
}