Commit 0c4046d6 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): don't do strict checks on guids

1 merge request!350WIP: Epic/permissions 28
Pipeline #86570062 passed with stages
in 10 minutes and 30 seconds
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment