Skip to content

Commit

Permalink
Fix bug in AuthZ
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshhari committed Jan 3, 2025
1 parent bfc4e69 commit 179f0d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions care/security/authorization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
from .patient import * # noqa
from .facility import * # noqa
from .user import * # noqa
from .user_schedule import * # noqa
4 changes: 4 additions & 0 deletions care/security/authorization/user_schedule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from care.emr.models.organization import FacilityOrganizationUser
from care.security.authorization import AuthorizationController
from care.security.authorization.base import (
AuthorizationHandler,
)
Expand Down Expand Up @@ -65,3 +66,6 @@ def can_write_user_booking(self, user, facility, schedule_user):
return self.check_permission_in_facility_organization(
[UserSchedulePermissions.can_write_user_booking.name], user, orgs=cache
)


AuthorizationController.register_internal_controller(UserScheduleAccess)

0 comments on commit 179f0d5

Please sign in to comment.