Skip to content

Commit

Permalink
Add object read permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Jul 16, 2021
1 parent 8ed0089 commit 507f9cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kolibri/core/device/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ class SyncStatusPermissions(DenyAll):
only be directly updated by internal Kolibri processes, not by users.
"""

def user_can_read_object(self, user, obj):
return True

def readable_by_user_filter(self, user):
"""
For simplicity, let anyone from the same facility read the sync status
Expand Down

0 comments on commit 507f9cf

Please sign in to comment.