Skip to content
Snippets Groups Projects
Commit 9541d97f authored by Carlos Vega's avatar Carlos Vega
Browse files

added decorator to worker listing view method

parent fd21d8bb
No related branches found
No related tags found
1 merge request!192Feature/add way to change password and PERMISSIONS
......@@ -14,7 +14,7 @@ from web.decorators import PermissionDecorator
logger = logging.getLogger(__name__)
@PermissionDecorator('change_worker', 'configuration')
def worker_list(request, worker_type=WORKER_STAFF):
doctors_list = Worker.get_workers_by_worker_type(worker_type, study_id=GLOBAL_STUDY_ID, ).order_by('-last_name')
context = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment