Skip to content

Commit 6fdfb40

Browse files
committed
now passing information to the front end on whether the user has staff or superuser permissions
1 parent 7326b26 commit 6fdfb40

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@
270270
"tmh_registry.users.api.permissions.IsMedicalPersonnel",
271271
),
272272
'EXCEPTION_HANDLER': 'tmh_registry.common.error_handling.error_handler',
273-
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
273+
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
274274
'PAGE_SIZE': 10,
275275
'DEFAULT_THROTTLE_CLASSES': [
276276
'rest_framework.throttling.AnonRateThrottle',

tmh_registry/users/api/serializers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class Meta:
4040
"first_name",
4141
"last_name",
4242
"email",
43+
"is_staff",
44+
"is_superuser",
4345
]
4446

4547

0 commit comments

Comments
 (0)