mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
17 lines
446 B
PHP
17 lines
446 B
PHP
<?php namespace Visiosoft\AdvsModule\Status;
|
|
|
|
use Anomaly\Streams\Platform\Entry\Contract\EntryInterface;
|
|
use Anomaly\Streams\Platform\Entry\EntryObserver;
|
|
|
|
class StatusObserver extends EntryObserver
|
|
{
|
|
public function deleting(EntryInterface $entry)
|
|
{
|
|
if ($entry->is_system) {
|
|
abort(403, trans('visiosoft.module.advs::message.you_can_not_delete_a_system_status'));
|
|
}
|
|
|
|
parent::deleting($entry);
|
|
}
|
|
}
|