fix: ensure authorization check is performed during component mount
This commit is contained in:
parent
cdf6b5f161
commit
d4fb69ea98
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ private function syncData(bool $toModel = false): void
|
|||
|
||||
public function mount()
|
||||
{
|
||||
$this->authorize('view', $this->resource);
|
||||
$this->syncData(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue