Merge pull request #381 from der-michik/fix-shift-signup-by-supporter

Fix sign-up to shifts by supporter
This commit is contained in:
msquare 2017-12-10 11:26:22 +01:00 committed by GitHub
commit ef0dbe8a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {