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
235
Issues
235
List
Boards
Labels
Service Desk
Milestones
Merge Requests
34
Merge Requests
34
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
0c4046d6
Commit
0c4046d6
authored
3 hours ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): don't do strict checks on guids
parent
8c974984
epic/permissions-28
1 merge request
!350
WIP: Epic/permissions 28
Pipeline
#86570062
passed with stages
in 10 minutes and 30 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/Delegates/ChannelRoleCalculator.php
Core/Permissions/Delegates/ChannelRoleCalculator.php
+1
-1
No files found.
Core/Permissions/Delegates/ChannelRoleCalculator.php
View file @
0c4046d6
...
...
@@ -43,7 +43,7 @@ class ChannelRoleCalculator extends BaseRoleCalculator
$channel
=
$this
->
getChannelForEntity
(
$entity
);
if
(
$this
->
user
===
null
)
{
$role
=
$this
->
getChannelNonSubscriberRole
(
$channel
);
}
elseif
(
$entity
->
getOwnerGuid
()
==
=
$this
->
user
->
getGuid
())
{
}
elseif
(
$entity
->
getOwnerGuid
()
==
$this
->
user
->
getGuid
())
{
$role
=
$this
->
roles
->
getRole
(
Roles
::
ROLE_CHANNEL_OWNER
);
}
elseif
(
$this
->
user
->
isSubscribed
(
$channel
->
getGuid
()))
{
$role
=
$this
->
getChannelSubscriberRole
(
$channel
);
...
...
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