Fix broken dashboards for staff and head

This commit is contained in:
Keannu Bernasol 2025-01-22 11:05:28 +08:00
parent 298501b973
commit 44796a93f7

View file

@ -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):