www/engine/System/Classes/Modules/Entitizer/Utils/Handler.php 1 location
|
@@ 139-142 (lines=4) @@
|
| 136 |
|
|
| 137 |
|
if (!$this->entity->move($parent_id)) return $ajax->setError(Language::get(static::$message_error_move)); |
| 138 |
|
|
| 139 |
|
} else if (Request::post('action') === 'remove') { |
| 140 |
|
|
| 141 |
|
if (!$this->entity->remove()) return $ajax->setError(Language::get(static::$message_error_remove)); |
| 142 |
|
} |
| 143 |
|
|
| 144 |
|
# ------------------------ |
| 145 |
|
|
www/engine/System/Classes/Modules/Filemanager/Utils/Handler.php 1 location
|
@@ 84-90 (lines=7) @@
|
| 81 |
|
|
| 82 |
|
# Process remove action |
| 83 |
|
|
| 84 |
|
if ((Request::post('action') === 'remove')) { |
| 85 |
|
|
| 86 |
|
if (!static::$permissions['manage'] || !$this->entity->remove()) { |
| 87 |
|
|
| 88 |
|
return $ajax->setError(Language::get(static::$message_error_remove)); |
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
# ------------------------ |
| 93 |
|
|