Commit 04323a0d authored by Clément Damiens's avatar Clément Damiens
Browse files

up admin 
parent 7e09d15c
......@@ -673,7 +673,9 @@ class CommunecterController extends Controller
}*/
//managed public and private sections through a url manager
if( Yii::app()->controller->id == "admin" && !Yii::app()->session[ "userIsAdmin" ] )
if( Yii::app()->controller->id == "admin" && !Yii::app()->session[ "userIsAdmin" ]
&& (!@Yii::app()->session[ "custom" ] || !@Yii::app()->session[ "custom" ]["admins"]
|| !Yii::app()->session[ "custom" ]["admins"][Yii::app()->session["userId"]]))
throw new CHttpException(403,Yii::t('error','Unauthorized Access.'));
if( Yii::app()->controller->id == "adminpublic" && ( !Yii::app()->session[ "userIsAdmin" ] && !Yii::app()->session[ "userIsAdminPublic" ] ) )
......
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