adsabs / biblib-service

ADS library service
https://ui.adsabs.harvard.edu
MIT License
4 stars 8 forks source link

Issue #31 addresses and closes the issue #66

Closed jonnybazookatone closed 9 years ago

jonnybazookatone commented 9 years ago

A GET end point has been added to the PermissionView view. This returns a list of user emails with the permissions associated to them.

The end point is permissions/

Only the users with 'owner' or 'admin' can get the list of permissions for a given library.

Relevant tests have been added and updated to check that only the admin and owner users can gain access to this list. And that the content of the list returns is what is expected.

The only missing feature is to tidy up the *_access() methods that would be nice to put as @classmethods that accesses a class attribute that describes the level for that view.