Roberto Rosario
36a51eeb73
Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 02:02:57 -04:00
Michael Price
1fc06a350b
Consolidate the docstring of the API methods into a class docstring.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:22:35 -04:00
Michael Price
afd4748426
Don't try to return a serializer if there is no request object. Used when the API view is being introspected.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:00:27 -04:00
Roberto Rosario
958ce912a0
AccessControlList.objects.check_access was updated to do a
...
Permission.check_permissions too. Remove duplicity.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-02-22 16:48:59 -04:00
Roberto Rosario
5f99b123d7
Merge branch 'master' into master_merge
2017-02-03 14:08:34 -04:00
Roberto Rosario
e2c8f7b3fc
Add complete role API endpoints (role create, patch, put, delete,
...
add/update role groups, add/update role permissions).
2017-01-30 18:33:06 -04:00
Roberto Rosario
c81a15f4f0
Add permission list API endpoint.
2017-01-30 00:21:57 -04:00
Roberto Rosario
a0810ed355
Rewrite contributed permission list, role permissions list get and post, role
...
group list get and post API views.
2017-01-15 18:21:20 -04:00
Lokesh
1bfeda382a
There was no REST APIs for role permissions mapping, role group mapping, role group mapping delete and get list of all permissions.
...
So we have added all above APIs in this file.
2017-01-11 07:52:18 +00:00
Roberto Rosario
97bba65668
Code style updates, change lists to tuples.
2015-08-13 15:27:22 -04:00
Roberto Rosario
d26402974a
Allow registering permission from the permission namespace. Replace all permission variables to be lowercase (style guide reserver uppercase variables for constants and literals).
2015-06-28 00:19:49 -04:00
Roberto Rosario
f4d3767b15
PEP8 cleanup, remove unused imports, fix permission check when removing metadata from a document
2015-01-26 19:17:35 -04:00
Roberto Rosario
d59ea3ede2
Add from __future__ import unicode_literals, issue #37
2015-01-19 04:06:40 -04:00
Roberto Rosario
efe96b3005
Close issue #109 , Add Roles API endpoints
2014-11-03 01:57:04 -04:00