stashy icon indicating copy to clipboard operation
stashy copied to clipboard

Ability to retrieve project default permissions

Open adrianbn opened this issue 5 years ago • 1 comments

I can't see a way to determine what's the "default permissions" settings in a project. Screen Shot 2019-03-13 at 4 50 28 PM

I can see if the project is public (upper left), the user access (mid), and group access (bottom), but not the default permissions (upper right). Is that functionality implemented? Am I missing anything?

Thanks!

adrianbn avatar Mar 13 '19 23:03 adrianbn

A quick look at the API makes me think this is achieve with a call of the form http://localhost:7990/bitbucket/rest/api/1.0/projects/{project-key}/permissions/{permission}/all. E.g:

> curl -u admin:admin http://localhost:7990/bitbucket/rest/api/1.0/projects/pub/permissions/PROJECT_READ/all
{"permitted":true}

Based on this I don't think this is part of stashy at the moment, right?

adrianbn avatar Mar 14 '19 00:03 adrianbn