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

Collaborator with read write can delete repository #81

Open
jmgiaever opened this issue Oct 19, 2017 · 0 comments
Open

Collaborator with read write can delete repository #81

jmgiaever opened this issue Oct 19, 2017 · 0 comments
Labels

Comments

@jmgiaever
Copy link

jmgiaever commented Oct 19, 2017

A collaborator that only have read access to a repository can delete it.

How?

  • Log in to Gogs with one account and add a user (another account) to a repository as a collaborator with read access
  • Log in to Gogs with the collaborator and create a token for this account, and query the API with the new token: DELETE {url}/api/v1/repos/*owner username*/*repo name*

Gogs Version: 0.11.29.0727

@unknwon unknwon added the bug label Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants