add role checking to controllers
This commit is contained in:
@@ -28,7 +28,7 @@ class BackendController extends Controller
|
||||
[
|
||||
'actions' => ['create','index','view','update'],
|
||||
'allow' => true,
|
||||
'roles' => ['@'],
|
||||
'roles' => ['admin','employee','reception'],
|
||||
],
|
||||
// everything else is denied
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user