Skip to content

Commit

Permalink
Update Module.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoffry304 authored Feb 20, 2019
1 parent f98ed6c commit 0945b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Module extends \yii\base\Module{

public function init()
{
$ids = str_split($this->allowedIds);
$ids = explode(",",$this->allowedIds);
if (!in_array(Yii::$app->user->id,$ids)){
throw new NotFoundHttpException('The requested page does not exist.');
}
Expand Down

0 comments on commit 0945b03

Please sign in to comment.