Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2017-06-04 15:37:10 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
f99c8ff99aee9beb8c692f36d4b84dc6e651e50a
f99c8ff9
1 parent
75981c24
Fixed role permission removal bug
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Services/PermissionService.php
app/Services/PermissionService.php
View file @
f99c8ff
...
...
@@ -259,7 +259,7 @@ class PermissionService
$roleIds
=
array_map
(
function
(
$role
)
{
return
$role
->
id
;
},
$roles
);
$this
->
jointPermission
->
newQuery
()
->
whereIn
(
'id'
,
$roleIds
)
->
delete
();
$this
->
jointPermission
->
newQuery
()
->
whereIn
(
'
role_
id'
,
$roleIds
)
->
delete
();
}
/**
...
...
Please
register
or
sign in
to post a comment