Skip to content

Commit

Permalink
Bug fix with calling to a function validateCsrfToken() on string
Browse files Browse the repository at this point in the history
  • Loading branch information
itstructure committed Apr 17, 2021
1 parent 42984c6 commit 6399b16
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

Via composer:

`composer require itstructure/yii2-rbac-module "~3.0.3"`
`composer require itstructure/yii2-rbac-module "~3.0.4"`

### If you are testing this package from local server directory

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### CHANGE LOG:

**3.0.4 April 17, 2021:**
- Bug fix: **Call to a member function validateCsrfToken() on string**.

**3.0.3 February 23, 2021:**
- Upgrade copyright year.

Expand Down
2 changes: 2 additions & 0 deletions src/controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public function behaviors()
*/
public function init()
{
parent::init();

$this->view->params['user'] = Yii::$app->user->identity;
}

Expand Down

0 comments on commit 6399b16

Please sign in to comment.