update phân quyền chi tiết
This commit is contained in:
@@ -41,6 +41,9 @@ class CardRegisterController extends Controller {
|
||||
}
|
||||
|
||||
public function actionIndex() {
|
||||
if (!Yii::$app->user->can("staffCardRegister"))
|
||||
throw new \yii\web\HttpException(403, 'Bạn không có quyền truy cập nội dung này');
|
||||
|
||||
$this->view->title = 'Đăng ký thẻ';
|
||||
$searchModel = new StaffSearch();
|
||||
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
|
||||
|
||||
Reference in New Issue
Block a user