Skip to content
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

Create GitHub Issue does not respect organization lock #285

Open
DHaussermann opened this issue May 26, 2020 · 3 comments
Open

Create GitHub Issue does not respect organization lock #285

DHaussermann opened this issue May 26, 2020 · 3 comments
Labels
Type/Question Further information is requested
Milestone

Comments

@DHaussermann
Copy link

DHaussermann commented May 26, 2020

When the GitHub plugin is configured to be locked to an organization, this is not reflected in the create functionality. Users are still able to create issues in repos where they are owner, collaborators etc...
When the Organization is locked in the config, create should only allow connected users to create issues in this organization regardless of their individual permissions and memberships. This is already the case with the attach functionality.

Steps

  • Lock the plugin to 1 Organization
  • Connect as a user with permissions to create issues in multiple organizations
  • Create a Github issue from a post

Observed Multiple orgs can be returned in the modal and the issue created

@hanzei
Copy link
Contributor

hanzei commented May 26, 2020

I can't reproduce this issue with b1e3667.

Locking to an organisation correctly brings up only a list of repos that are part of that organisation.

Screenshot from 2020-05-26 10-58-04
Screenshot from 2020-05-26 10-58-59

Is it possible that you already opened the modal and then changed the organisation? Please note that changing the organisation setting takes a few seconds to "apply".

@hanzei hanzei added Type/Question Further information is requested and removed Triage labels May 26, 2020
@hanzei hanzei removed this from the v1.0.0 milestone May 26, 2020
@hanzei hanzei removed the Type/Bug Something isn't working label May 26, 2020
@raghavaggarwal2308 raghavaggarwal2308 added this to the v2.4.0 milestone Jul 9, 2024
@AayushChaudhary0001
Copy link

@mickmister I tried to reproduce this bug with the multiple scenarios but was able to reproduce it once only.
Issue: This is the stale page case when user has opened the Mattermost website in two tabs on same window.

Steps to reproduce:

  1. Go to the mattermost server and open it in two different tabs
  2. On first tab of the Mattermost server open the 'Create Github issue' modal
  3. Now switch to another tab of Mattermost server, lock the plugin to 1 Organization.
  4. Save the changes and come back to the first tab of Mattermost where we initially opened the 'Create Github issue' modal
  5. Check the Repository dropdown

Actual - User is still able to create issues in different repository
Expected - User should not be able to create issues in different repository other than the locked one

@raghavaggarwal2308
Copy link
Contributor

@wiggin77 It is a very rare edge case. If we just re-open the modal the drop down will update. Do you think we should fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type/Question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants