mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-02-22 22:18:14 +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):
|
||||
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):
|
||||
|
|
Loading…
Reference in a new issue