Skip to content

Commit

Permalink
Divided freeze and unfreeze access controll
Browse files Browse the repository at this point in the history
  • Loading branch information
tafid committed Nov 17, 2016
1 parent 2bd2a9a commit 9cc9518
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/controllers/DomainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@ public function behaviors()
'rules' => [
[
'allow' => true,
'roles' => ['domain.freeze', 'domain.unfreeze'],
'actions' => ['enable-freeze', 'disable-freeze', 'enable-freeze-w-p', 'disable-freeze-w-p'],
'roles' => ['domain.freeze'],
'actions' => ['enable-freeze', 'enable-freeze-w-p'],
],
[
'allow' => true,
'roles' => ['domain.unfreeze'],
'actions' => ['disable-freeze', 'disable-freeze-w-p'],
],
],
],
Expand Down

0 comments on commit 9cc9518

Please sign in to comment.