++ fix permessi assegnazioni
This commit is contained in:
@@ -49,6 +49,8 @@ class TerritorioEdit extends Component
|
||||
|
||||
public function save()
|
||||
{
|
||||
$this->authorize('territori.manage');
|
||||
|
||||
$this->validate();
|
||||
|
||||
$data = [
|
||||
@@ -82,6 +84,8 @@ class TerritorioEdit extends Component
|
||||
|
||||
public function removePdf()
|
||||
{
|
||||
$this->authorize('territori.manage');
|
||||
|
||||
if ($this->territorio->pdf_path) {
|
||||
Storage::disk('public')->delete($this->territorio->pdf_path);
|
||||
if ($this->territorio->thumbnail_path) {
|
||||
|
||||
Reference in New Issue
Block a user