update phân quyền chi tiết
This commit is contained in:
@@ -40,8 +40,10 @@ class AssignController extends Controller {
|
||||
}
|
||||
|
||||
public function actionIndex() {
|
||||
$this->view->title = 'Cấp quyền truy cập';
|
||||
if (!Yii::$app->user->can("scheduleAssign"))
|
||||
throw new \yii\web\HttpException(403, 'Bạn không có quyền truy cập nội dung này');
|
||||
|
||||
$this->view->title = 'Cấp quyền truy cập';
|
||||
return $this->render('index', [
|
||||
"company" => Department::findOne(1),
|
||||
"scheduleArray" => Schedule::scheduleArray(),
|
||||
|
||||
Reference in New Issue
Block a user