Enhance user role checks to include 'direktor' permissions across various components, including product relations, global order resource actions, and authentication gates.

This commit is contained in:
Mekan1206 committed 2026-08-15 14:53:51 +05:00
1 parent 53a8e0634e
commit b52b567388
5 files changed
+135 -8

No files matched your search

@@ -40,7 +40,7 @@ public function handle(): void
$this->model->collections()->sync($this->collections);
$this->model->inventories()->sync($this->inventories);
if ($this->user->isAdmin()) {
if ($this->user->isAdmin() || $this->user->isDirektor()) {
$this->model->channels()->sync($this->channel);
}