Add isDirektor role check to user model and update product import action to include direktor permissions
This commit is contained in:
1 parent
6c596c071a
commit
53a8e0634e
2 files changed
+9
-1
No files matched your search
@@ -26,6 +26,14 @@ public function isAdmin(): bool
|
||||
return $this->hasRole('admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is direktor
|
||||
*/
|
||||
public function isDirektor(): bool
|
||||
{
|
||||
return $this->hasRole('direktor');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is manager
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user