mattermost / mattermost-plugin-gitlab

GitLab plugin for Mattermost
Apache License 2.0
139 stars 83 forks source link

You don't have the permissions to create subscriptions for this project #493

Closed alekseyp closed 5 months ago

alekseyp commented 6 months ago

Hello,

Plugin version: GitLab version: 1.9.0, 191a11a, built Fri, 19 Apr 2024 17:24:08 UTC with go1.21.9

I'm the owner of the group and I'm the owner of the project.

When I'm subscribing to a group or a project I'm getting: You don't have the permissions to create subscriptions for this project

Here is the log:

==> current <==
2024-05-07_19:58:19.29204 {"timestamp":"2024-05-07 19:58:19.291 Z","level":"warn","msg":"You don't have the permissions to create subscriptions for this project.","caller":"app/plugin_api.go:1006","plugin_id":"com.github.manland.mattermost-plugin-gitlab"}

Here is the list of commands I've tried with the same error message.

/gitlab subscriptions add group
/gitlab subscriptions add group/project
/gitlab subscriptions add group/project issues,confidential_issues,merges,tag
/gitlab subscriptions add group/project issues,merges,tag
alekseyp commented 6 months ago

Looks like the bug was introduced in 1.9.0, since it's been a week with no notifications even on subscribed channels for us.

For anyone looking for a temp fix:

apollo13 commented 5 months ago

I have the same issue, the workaround works. Thank you!

LotusMoves commented 5 months ago

i can confirm this is broken this appears to be what broke it I am unsure how to test it locally 54a9c46

mickmister commented 5 months ago

Thanks all. We'll be releasing a fix for this shortly. Will follow up here with me more info as it comes. Thanks so much

mickmister commented 5 months ago

A release with the fix is available here https://github.com/mattermost/mattermost-plugin-gitlab/releases/tag/v1.9.1, and will be in the marketplace early next week