🆙 Final fix delete storage link to fix news_images and logs 🆙
This commit is contained in:
1 parent
65ea6c167f
commit
acf2d7e661
447 files changed
+208
-66965
No files matched your search
@@ -1,62 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Auth\Access\HandlesAuthorization;
|
||||
use Illuminate\Auth\Access\Response;
|
||||
|
||||
class WebsiteTeamPolicy
|
||||
{
|
||||
use HandlesAuthorization;
|
||||
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function viewAny(User $user)
|
||||
{
|
||||
return hasHousekeepingPermission('manage_teams');
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function view(User $user)
|
||||
{
|
||||
return hasHousekeepingPermission('manage_teams');
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function create(User $user)
|
||||
{
|
||||
return hasHousekeepingPermission('manage_teams');
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function update(User $user)
|
||||
{
|
||||
return hasHousekeepingPermission('manage_teams');
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @return Response|bool
|
||||
*/
|
||||
public function delete(User $user)
|
||||
{
|
||||
return hasHousekeepingPermission('manage_teams');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user