1
0
forked from poc/pds

Added and updated policy

This commit is contained in:
dhanabalan
2025-04-23 14:42:33 +05:30
parent 01f8eae2f7
commit 7fd2810278
18 changed files with 1567 additions and 9 deletions

View File

@@ -36,7 +36,8 @@ class BlockPolicy
*/
public function update(User $user, Block $block): bool
{
return false;
return $user->hasPermissionTo('update Block');
// return false;
}
/**
@@ -44,7 +45,8 @@ class BlockPolicy
*/
public function delete(User $user, Block $block): bool
{
return false;
return $user->hasPermissionTo('delete Block');
// return false;
}
/**
@@ -52,7 +54,8 @@ class BlockPolicy
*/
public function restore(User $user, Block $block): bool
{
return false;
return $user->hasPermissionTo('restore Block');
// return false;
}
/**
@@ -60,6 +63,7 @@ class BlockPolicy
*/
public function forceDelete(User $user, Block $block): bool
{
return false;
return $user->hasPermissionTo('force delete Block');
// return false;
}
}