summaryrefslogtreecommitdiffstats
path: root/modules-available/exams/templates/page-add-edit-exam.html
diff options
context:
space:
mode:
authorChristian Hofmaier2018-01-02 16:37:40 +0100
committerChristian Hofmaier2018-01-02 16:37:40 +0100
commit4a20d8b28d6f24f604634f75f95b19dff33f8e0a (patch)
treefbfb2ef034a6dbb332ce8daf7216808a7bdd4510 /modules-available/exams/templates/page-add-edit-exam.html
parent[statistics] added permissions to view client statistics, delete clients and ... (diff)
downloadslx-admin-4a20d8b28d6f24f604634f75f95b19dff33f8e0a.tar.gz
slx-admin-4a20d8b28d6f24f604634f75f95b19dff33f8e0a.tar.xz
slx-admin-4a20d8b28d6f24f604634f75f95b19dff33f8e0a.zip
[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.
Diffstat (limited to 'modules-available/exams/templates/page-add-edit-exam.html')
-rw-r--r--modules-available/exams/templates/page-add-edit-exam.html2
1 files changed, 1 insertions, 1 deletions
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 @@
</div>
<select id="locations" multiple name="locations[]">
{{#locations}}
- <option value="{{locationid}}" {{#selected}}selected{{/selected}}>{{locationpad}} {{locationname}}</option>
+ <option value="{{locationid}}" {{disabled}} {{#selected}}selected{{/selected}}>{{locationpad}} {{locationname}}</option>
{{/locations}}
</select>
</div>