You've already forked Atomcms-edit
Initial commit
This commit is contained in:
Executable
+32
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
|
||||
class AchievementPolicy
|
||||
{
|
||||
use HandlesAuthorization;
|
||||
|
||||
public function viewAny()
|
||||
{
|
||||
return hasHousekeepingPermission('manage_achievements');
|
||||
}
|
||||
|
||||
public function view()
|
||||
{
|
||||
return hasHousekeepingPermission('manage_achievements');
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
return hasHousekeepingPermission('manage_achievements');
|
||||
}
|
||||
|
||||
public function update()
|
||||
{
|
||||
return hasHousekeepingPermission('manage_achievements');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user