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:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user