Merge pull request #381 from der-michik/fix-shift-signup-by-supporter
Fix sign-up to shifts by supporter
This commit is contained in:
commit
ef0dbe8a1b
|
@ -194,7 +194,7 @@ function shift_entry_add_controller()
|
||||||
$angeltypes[$angeltype['id']] = $angeltype['name'];
|
$angeltypes[$angeltype['id']] = $angeltype['name'];
|
||||||
}
|
}
|
||||||
$angeltype_select = html_select_key('angeltype_id', 'angeltype_id', $angeltypes, $type['id']);
|
$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 = Users_by_angeltype($type);
|
||||||
$users_select = [];
|
$users_select = [];
|
||||||
foreach ($users as $usr) {
|
foreach ($users as $usr) {
|
||||||
|
|
Loading…
Reference in New Issue