-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
commons/hubmap_commons/hm_auth.py
Lines 346 to 355 in 3c747f1
| #check to see if a user has read privileges | |
| #the user has read privileges if they are a member of the | |
| #default read group or if they have write privileges at all per the above has_write_privs method | |
| def has_read_privs(self, groups_token): | |
| user_info = self.getUserInfo(groups_token, getGroups = True) | |
| if isinstance(user_info, Response): | |
| return user_info | |
| if not self.data_read_group_uuid is None and self.data_read_group_uuid in user_info['hmgroupids']: | |
| return True | |
| return self.has_write_privs(groups_token) |
Users should always be a part of the default read group so we need to be able to flag those who have access via Globus but are not yet a part of the default read group. We have run into issues with functionality in the SenNet portal with this exact use-case.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Ready