diff options
author | Christian Hofmaier | 2018-01-02 16:37:40 +0100 |
---|---|---|
committer | Christian Hofmaier | 2018-01-02 16:37:40 +0100 |
commit | 4a20d8b28d6f24f604634f75f95b19dff33f8e0a (patch) | |
tree | fbfb2ef034a6dbb332ce8daf7216808a7bdd4510 /modules-available/exams/templates/page-add-edit-exam.html | |
parent | [statistics] added permissions to view client statistics, delete clients and ... (diff) | |
download | slx-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.html | 2 |
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> |