It would be useful to have an API to run has_access
permission checks so that 3rd-party clients can rely on Allura permissions. I think that it would be an API per-tool and per-project including neighborhood-projects (whose API needs some fixing) and that you would need 'admin' access on the project to use the API. It could take a username and role and return a true/false result.
Closed #768.
allura:ib/7633
Very nice. Just two ways it could be better. One is getting docs ready for https://sourceforge.net/p/forge/documentation/Allura%20API/. Probably don't need to list it on every endpoint, but could mention it once in a general section (once [#6797] is done it could be a "trait").
Also the tests are fairly repetitive. It's not necessarily wrong so I'm not saying you have to change this now, but at least in the future consider refactoring for some shared helpers (mixins maybe, like you did for the api functionality itself). Test code is code too, and deserves refactoring.
Related
Tickets:
#6797I did write the documentation for this, but forgot to post it :)
Here it is:
I agree that test are repetitive, I'll try to refactor this kind of stuff in the future. If you ok with these tests as it is you can close the ticket.