mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-02-23 14:38:13 +08:00
Fix broken dashboards for staff and head
This commit is contained in:
parent
298501b973
commit
44796a93f7
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class IsPlanning(BasePermission):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def has_permission(self, request, view):
|
def has_permission(self, request, view):
|
||||||
return bool(request.user and request.user.role in ("planning", "admin"))
|
return bool(request.user and request.user.role in ("planning", "admin", "head", "staff"))
|
||||||
|
|
||||||
|
|
||||||
class IsHead(BasePermission):
|
class IsHead(BasePermission):
|
||||||
|
|
Loading…
Reference in a new issue