Fix shift sign up angel button not always displayed
This commit is contained in:
parent
e407a3b780
commit
1c4c164c39
|
@ -88,12 +88,9 @@ function Shift_signup_button_render(Shift $shift, AngelType $angeltype)
|
|||
->first();
|
||||
|
||||
if (
|
||||
isset($angeltype->shift_signup_state)
|
||||
&& (
|
||||
$angeltype->shift_signup_state->isSignupAllowed()
|
||||
$angeltype->shift_signup_state?->isSignupAllowed()
|
||||
|| auth()->user()->isAngelTypeSupporter($angeltype)
|
||||
|| auth()->can('admin_user_angeltypes')
|
||||
)
|
||||
) {
|
||||
return button(shift_entry_create_link($shift, $angeltype), __('Sign up'));
|
||||
} elseif (empty($user_angeltype)) {
|
||||
|
|
Loading…
Reference in New Issue