Skip to content

Commit

Permalink
Adds access for managers to voucher issuing (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Guldborg authored Mar 13, 2024
1 parent ef22c79 commit ce1cbe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shifty.App/Pages/IssueVoucher.razor
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@using Components
@inject NavigationManager NavManager

@if (_user is not null && _user.IsInRole("Board"))
@if (_user is not null && (_user.IsInRole("Board") || _user.IsInRole("Manager")))
{
<Voucher User="@_user"/>
}
Expand All @@ -16,7 +16,7 @@
var authState = await AuthTask;
_user = authState.User;

if (_user is null || !_user.IsInRole("Board"))
if (_user is null || (!_user.IsInRole("Board") && !_user.IsInRole("Manager")))
{
NavManager.NavigateTo("/");
}
Expand Down

0 comments on commit ce1cbe5

Please sign in to comment.