Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Alto
/
rkn
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit c2737f34
authored
2021-06-04 17:29:05 +0300
by
Скуратович Александр
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
доступы
1 parent
03183eb3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
controllers/FilterController.php
controllers/HostController.php
controllers/HostFreeController.php
controllers/FilterController.php
View file @
c2737f3
...
@@ -5,6 +5,7 @@ namespace app\controllers;
...
@@ -5,6 +5,7 @@ namespace app\controllers;
use
Yii
;
use
Yii
;
use
app\models\Filter
;
use
app\models\Filter
;
use
app\models\FilterSearch
;
use
app\models\FilterSearch
;
use
yii\filters\AccessControl
;
use
yii\web\Controller
;
use
yii\web\Controller
;
use
yii\web\NotFoundHttpException
;
use
yii\web\NotFoundHttpException
;
use
yii\filters\VerbFilter
;
use
yii\filters\VerbFilter
;
...
@@ -20,6 +21,17 @@ class FilterController extends Controller
...
@@ -20,6 +21,17 @@ class FilterController extends Controller
public
function
behaviors
()
public
function
behaviors
()
{
{
return
[
return
[
'access'
=>
[
'class'
=>
AccessControl
::
className
(),
'rules'
=>
[
[
'allow'
=>
true
,
'roles'
=>
[
'@'
],
],
],
],
'verbs'
=>
[
'verbs'
=>
[
'class'
=>
VerbFilter
::
className
(),
'class'
=>
VerbFilter
::
className
(),
'actions'
=>
[
'actions'
=>
[
...
...
controllers/HostController.php
View file @
c2737f3
...
@@ -5,6 +5,7 @@ namespace app\controllers;
...
@@ -5,6 +5,7 @@ namespace app\controllers;
use
Yii
;
use
Yii
;
use
app\models\Host
;
use
app\models\Host
;
use
app\models\HostSearch
;
use
app\models\HostSearch
;
use
yii\filters\AccessControl
;
use
yii\web\Controller
;
use
yii\web\Controller
;
use
yii\web\NotFoundHttpException
;
use
yii\web\NotFoundHttpException
;
use
yii\filters\VerbFilter
;
use
yii\filters\VerbFilter
;
...
@@ -20,6 +21,15 @@ class HostController extends Controller
...
@@ -20,6 +21,15 @@ class HostController extends Controller
public
function
behaviors
()
public
function
behaviors
()
{
{
return
[
return
[
'access'
=>
[
'class'
=>
AccessControl
::
className
(),
'rules'
=>
[
[
'allow'
=>
true
,
'roles'
=>
[
'@'
],
],
],
],
'verbs'
=>
[
'verbs'
=>
[
'class'
=>
VerbFilter
::
className
(),
'class'
=>
VerbFilter
::
className
(),
'actions'
=>
[
'actions'
=>
[
...
...
controllers/HostFreeController.php
View file @
c2737f3
...
@@ -5,6 +5,7 @@ namespace app\controllers;
...
@@ -5,6 +5,7 @@ namespace app\controllers;
use
Yii
;
use
Yii
;
use
app\models\Host
;
use
app\models\Host
;
use
app\models\HostSearch
;
use
app\models\HostSearch
;
use
yii\filters\AccessControl
;
use
yii\web\Controller
;
use
yii\web\Controller
;
use
yii\web\NotFoundHttpException
;
use
yii\web\NotFoundHttpException
;
use
yii\filters\VerbFilter
;
use
yii\filters\VerbFilter
;
...
@@ -20,6 +21,15 @@ class HostFreeController extends Controller
...
@@ -20,6 +21,15 @@ class HostFreeController extends Controller
public
function
behaviors
()
public
function
behaviors
()
{
{
return
[
return
[
'access'
=>
[
'class'
=>
AccessControl
::
className
(),
'rules'
=>
[
[
'allow'
=>
true
,
'roles'
=>
[
'@'
],
],
],
],
'verbs'
=>
[
'verbs'
=>
[
'class'
=>
VerbFilter
::
className
(),
'class'
=>
VerbFilter
::
className
(),
'actions'
=>
[
'actions'
=>
[
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment