configure accesses rule
This commit is contained in:
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace backend\modules\task\controllers;
|
||||
|
||||
use yii\web\Controller;
|
||||
|
||||
/**
|
||||
* Default controller for the `task` module
|
||||
*/
|
||||
class DefaultController extends Controller
|
||||
{
|
||||
/**
|
||||
* Renders the index view for the module
|
||||
* @return string
|
||||
*/
|
||||
public function actionIndex()
|
||||
{
|
||||
return $this->render('index');
|
||||
}
|
||||
}
|
@ -24,6 +24,9 @@ class TaskController extends Controller
|
||||
public function behaviors()
|
||||
{
|
||||
return [
|
||||
'as AccessBehavior' => [
|
||||
'class' => \developeruz\db_rbac\behaviors\AccessBehavior::className(),
|
||||
],
|
||||
'verbs' => [
|
||||
'class' => VerbFilter::className(),
|
||||
'actions' => [
|
||||
|
@ -24,6 +24,9 @@ class TaskUserController extends Controller
|
||||
public function behaviors()
|
||||
{
|
||||
return [
|
||||
'as AccessBehavior' => [
|
||||
'class' => \developeruz\db_rbac\behaviors\AccessBehavior::className(),
|
||||
],
|
||||
'verbs' => [
|
||||
'class' => VerbFilter::className(),
|
||||
'actions' => [
|
||||
|
@ -1,12 +0,0 @@
|
||||
<div class="task-default-index">
|
||||
<h1><?= $this->context->action->uniqueId ?></h1>
|
||||
<p>
|
||||
This is the view content for action "<?= $this->context->action->id ?>".
|
||||
The action belongs to the controller "<?= get_class($this->context) ?>"
|
||||
in the "<?= $this->context->module->id ?>" module.
|
||||
</p>
|
||||
<p>
|
||||
You may customize this page by editing the following file:<br>
|
||||
<code><?= __FILE__ ?></code>
|
||||
</p>
|
||||
</div>
|
Reference in New Issue
Block a user