nlpmed_portal.annotations.permissions module¶
- nlpmed_portal.annotations.permissions.has_global_permission(user, codename, app_label='annotations')[source]¶
Check if the user has the required permission globally.
- Return type:
bool
- nlpmed_portal.annotations.permissions.has_permission(user, codename, project=None)[source]¶
Check if the user has the required permission either globally or within a specific project.
- Return type:
bool