Commit a32473d6 authored by Feu's avatar Feu
Browse files

aecms compatible promo

parent 13560e10
......@@ -71,14 +71,14 @@ if ( $site->is_user_admin() )
}
}
$bypass_admin=false;
$noedit=false;
if ( isset($_REQUEST["name"]) )
{
if ( $_REQUEST["name"]{0} == ":" )
{
$page->load_by_name(substr($_REQUEST["name"],1));
$bypass_admin=true;
$noedit=true;
}
else
$page->load_by_name(CMS_PREFIX.$_REQUEST["name"]);
......@@ -124,7 +124,7 @@ if ( !$page->is_right($site->user,DROIT_LECTURE) )
if ( $page->is_right($site->user,DROIT_ECRITURE) || ($site->is_user_admin() && !$bypass_admin) )
if ( ($page->is_right($site->user,DROIT_ECRITURE) || $site->is_user_admin()) && !$noedit )
{
if ( $_REQUEST['action'] == "save" )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment