Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
234
Issues
234
List
Boards
Labels
Service Desk
Milestones
Merge Requests
35
Merge Requests
35
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
5e7f039a
Commit
5e7f039a
authored
59 minutes ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): do a correct check
parent
a6a7ecfc
1 merge request
!349
Chore refactor permissions export
Pipeline
#86340735
passed with stages
in 10 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Core/Permissions/Manager.php
Core/Permissions/Manager.php
+1
-1
No files found.
Core/Permissions/Manager.php
View file @
5e7f039a
...
...
@@ -50,7 +50,7 @@ class Manager
throw
new
\InvalidArgumentException
(
'User does not exist'
);
}
$entities
=
$opts
[
'entities'
]
??
$this
->
entitiesBuilder
->
get
([
'guids'
=>
$opts
[
'guids'
]])
;
$entities
=
empty
(
$opts
[
'entities'
])
?
$this
->
entitiesBuilder
->
get
([
'guids'
=>
$opts
[
'guids'
]])
:
$opts
[
'entities'
]
;
if
(
$user
&&
$user
->
getType
()
!==
'user'
)
{
throw
new
\InvalidArgumentException
(
'Entity is not a user'
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment