From 9541d97fd5b9a9382602b1d6480c582c6f553be9 Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@uni.lu> Date: Thu, 22 Nov 2018 16:37:47 +0100 Subject: [PATCH] added decorator to worker listing view method --- smash/web/views/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smash/web/views/worker.py b/smash/web/views/worker.py index 5031923d..801ffa61 100644 --- a/smash/web/views/worker.py +++ b/smash/web/views/worker.py @@ -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 = { -- GitLab