-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MM-564]: Fixed the subscribe permissions config preventing system admins from creating subscriptions in DM or GM #82
base: master
Are you sure you want to change the base?
Conversation
…mins from creating subscriptions in DM or GM
server/subscribe.go
Outdated
@@ -702,7 +702,9 @@ func (p *Plugin) hasPermissionToManageSubscription(instanceID types.ID, userID, | |||
return errors.New("is not channel admin") | |||
} | |||
default: | |||
return errors.New("can only subscribe in public and private channels") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at this makes me feel that subs were not allowed in DM/GM and our changes overrides that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, as requested in the issue, the current PR changes allow the system admin to create subscriptions in DM/GM. Let me know if we need to get the approval from Doug before doing these changes, I will revert the changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kshitij-Katiyar Yes we should get a confirmation here, that the current implmentation does not allow subs in DM/GM, do we need to update that.
Also, it was mentioned in the issue that the error they are receiving is regarding permisssions and not "not allowed in DM/gM.....". Did we look into that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
26626e3
to
e21ce63
Compare
Summary
Fixed the subscribe permissions config preventing system admins from creating subscriptions in DM or GM
How to test
Mattermost Roles Allowed to Edit Jira Subscriptions
config of the Jira plugin toUsers who can manage channel settings
orUsers who can manage teams
/Jira subscribe
command in a DM or GMCurrent Behaviour
Updated Behaviour