You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -9,27 +9,27 @@ class CatalogPagePolicy
|
|||||||
{
|
{
|
||||||
use HandlesAuthorization;
|
use HandlesAuthorization;
|
||||||
|
|
||||||
public function viewAny(User $user)
|
public function viewAny(User $user): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_catalog_pages');
|
return hasHousekeepingPermission('manage_catalog_pages');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function view(User $user)
|
public function view(User $user): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_catalog_pages');
|
return hasHousekeepingPermission('manage_catalog_pages');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create(User $user)
|
public function create(User $user): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_catalog_pages');
|
return hasHousekeepingPermission('manage_catalog_pages');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update(User $user)
|
public function update(User $user): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_catalog_pages');
|
return hasHousekeepingPermission('manage_catalog_pages');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function delete(User $user)
|
public function delete(User $user): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('delete_catalog_pages');
|
return hasHousekeepingPermission('delete_catalog_pages');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,22 +8,22 @@ class EmulatorSettingPolicy
|
|||||||
{
|
{
|
||||||
use HandlesAuthorization;
|
use HandlesAuthorization;
|
||||||
|
|
||||||
public function viewAny()
|
public function viewAny(): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_emulator_settings');
|
return hasHousekeepingPermission('manage_emulator_settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function view()
|
public function view(): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_emulator_settings');
|
return hasHousekeepingPermission('manage_emulator_settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create()
|
public function create(): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_emulator_settings');
|
return hasHousekeepingPermission('manage_emulator_settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update()
|
public function update(): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_emulator_settings');
|
return hasHousekeepingPermission('manage_emulator_settings');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,22 +8,22 @@ class EmulatorTextPolicy
|
|||||||
{
|
{
|
||||||
use HandlesAuthorization;
|
use HandlesAuthorization;
|
||||||
|
|
||||||
public function viewAny()
|
public function viewAny(): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_emulator_texts');
|
return hasHousekeepingPermission('manage_emulator_texts');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function view()
|
public function view(): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_emulator_texts');
|
return hasHousekeepingPermission('manage_emulator_texts');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create()
|
public function create(): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_emulator_texts');
|
return hasHousekeepingPermission('manage_emulator_texts');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update()
|
public function update(): bool
|
||||||
{
|
{
|
||||||
return hasHousekeepingPermission('manage_emulator_texts');
|
return hasHousekeepingPermission('manage_emulator_texts');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user