From 4a20d8b28d6f24f604634f75f95b19dff33f8e0a Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Tue, 2 Jan 2018 16:37:40 +0100 Subject: [exams] reworked permission system from "click and you get error" to "button is disabled due to lack of permission". you now can only add/delete/edit based on locations you have permission for. you need permission for all locations of an exam to edit/delete it, but you can see it if you have at least permission for one of the locations. --- modules-available/exams/templates/page-add-edit-exam.html | 2 +- modules-available/exams/templates/page-exams.html | 7 +++---- modules-available/exams/templates/page-upcoming-lectures.html | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'modules-available/exams/templates') diff --git a/modules-available/exams/templates/page-add-edit-exam.html b/modules-available/exams/templates/page-add-edit-exam.html index 58c61b11..11bffed8 100644 --- a/modules-available/exams/templates/page-add-edit-exam.html +++ b/modules-available/exams/templates/page-add-edit-exam.html @@ -19,7 +19,7 @@ diff --git a/modules-available/exams/templates/page-exams.html b/modules-available/exams/templates/page-exams.html index 29b8c319..bb6cbd0a 100644 --- a/modules-available/exams/templates/page-exams.html +++ b/modules-available/exams/templates/page-exams.html @@ -43,10 +43,9 @@ {{^liesInPast}} {{/liesInPast}} - {{lang_edit}} - + - + @@ -56,7 +55,7 @@
- {{lang_addExam}} + {{lang_addExam}}
diff --git a/modules-available/exams/templates/page-upcoming-lectures.html b/modules-available/exams/templates/page-upcoming-lectures.html index 8ff8143e..074aa42d 100644 --- a/modules-available/exams/templates/page-upcoming-lectures.html +++ b/modules-available/exams/templates/page-upcoming-lectures.html @@ -31,7 +31,7 @@
- + -- cgit v1.2.3-55-g7522