Add isDirektor role check to user model and update product import action to include direktor permissions

This commit is contained in:
Mekan1206 committed 2026-08-15 13:06:11 +05:00
1 parent 6c596c071a
commit 53a8e0634e
2 files changed
+9 -1

No files matched your search

@@ -50,7 +50,7 @@ public function fields(NovaRequest $request)
->displayUsingLabels()
->searchable()
->options(function () {
if (auth()->user()->isAdmin()) {
if (auth()->user()->isAdmin() || auth()->user()->isDirektor()) {
return ChannelRepository::values();
}