++ fix permessi e mobile portrait
This commit is contained in:
@@ -12,6 +12,8 @@ class ProclamatoreCestino extends Component
|
||||
|
||||
public function restore(int $id)
|
||||
{
|
||||
$this->authorize('settings.manage');
|
||||
|
||||
$proclamatore = Proclamatore::onlyTrashed()->findOrFail($id);
|
||||
$proclamatore->restore();
|
||||
activity()->causedBy(auth()->user())
|
||||
@@ -22,6 +24,8 @@ class ProclamatoreCestino extends Component
|
||||
|
||||
public function forceDelete(int $id)
|
||||
{
|
||||
$this->authorize('settings.manage');
|
||||
|
||||
$proclamatore = Proclamatore::onlyTrashed()->findOrFail($id);
|
||||
|
||||
if ($proclamatore->assegnazioni()->exists()) {
|
||||
|
||||
Reference in New Issue
Block a user