summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-10 11:26:22 +0100
committerGitHub <noreply@github.com>2017-12-10 11:26:22 +0100
commitef0dbe8a1bd80fb9bec0400e84550df02f138dbd (patch)
tree46082bad6307e3a9b3b4d99d4c93b3329e049815
parentf2972af591b8fc90115c98b4936518deb1644d5a (diff)
parent32d14f493b114fc97b64028510c1a1abe73676ba (diff)
Merge pull request #381 from der-michik/fix-shift-signup-by-supporter
Fix sign-up to shifts by supporter
-rw-r--r--includes/controller/shift_entries_controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/controller/shift_entries_controller.php b/includes/controller/shift_entries_controller.php
index 6a471122..d9813ebc 100644
--- a/includes/controller/shift_entries_controller.php
+++ b/includes/controller/shift_entries_controller.php
@@ -194,7 +194,7 @@ function shift_entry_add_controller()
$angeltypes[$angeltype['id']] = $angeltype['name'];
}
$angeltype_select = html_select_key('angeltype_id', 'angeltype_id', $angeltypes, $type['id']);
- } elseif (in_array('shiftentry_edit_angeltype_supporter', $privileges)) {
+ } elseif (in_array('shiftentry_edit_angeltype_supporter', $privileges) && User_is_AngelType_supporter($user, $type)) {
$users = Users_by_angeltype($type);
$users_select = [];
foreach ($users as $usr) {