Skip to content

Commit

Permalink
v3.0.4
Browse files Browse the repository at this point in the history
* Include csrf token for deleting role route.

Signed-off-by: crynobone <[email protected]>
  • Loading branch information
crynobone committed May 31, 2015
1 parent fea9e2c commit 3165d7f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ title: Control Change Log

## Version 3.0 {#v3-0}

### v3.0.4 {#v3-0-4}

* Include csrf token for deleting role route.

### v3.0.3 {#v3-0-3}

* Fixes missing delete roles route.
Expand Down
2 changes: 1 addition & 1 deletion orchestra.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Orchestra Platform Control Extension",
"author": "Mior Muhammad Zaki",
"url": "https://github.com/orchestral/control",
"version": "3.0.3",
"version": "3.0.4",
"provides": [
"Orchestra\\Control\\ControlServiceProvider"
]
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Presenters/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function actions(TableBuilder $table)

if (! in_array((int) $row->id, $roles)) {
$html[] = app('html')->link(
handles("orchestra::control/roles/{$row->id}/delete"),
handles("orchestra::control/roles/{$row->id}/delete", ['csrf' => true]),
trans('orchestra/foundation::label.delete'),
['class' => 'btn btn-mini btn-danger']
);
Expand Down

0 comments on commit 3165d7f

Please sign in to comment.