#118 - fix to policies and added translations
This commit is contained in:
@@ -35,5 +35,6 @@ class AuthServiceProvider extends ServiceProvider
|
||||
Gate::define("manageVacationLimits", fn(User $user) => $user->role === Role::AdministrativeApprover);
|
||||
Gate::define("generateTimesheet", fn(User $user) => $user->role === Role::AdministrativeApprover);
|
||||
Gate::define("listMonthlyUsage", fn(User $user) => $user->role === Role::AdministrativeApprover);
|
||||
Gate::define("manageKeys", fn(User $user) => $user->role === Role::AdministrativeApprover);
|
||||
}
|
||||
}
|
||||
|
@@ -58,7 +58,7 @@ class KeysController extends Controller
|
||||
|
||||
return redirect()
|
||||
->back()
|
||||
->with("success", __("Key has been taked."));
|
||||
->with("success", __("Key has been taken."));
|
||||
}
|
||||
|
||||
public function give(Key $key, GiveKeyRequest $request): RedirectResponse
|
||||
|
Reference in New Issue
Block a user