Skip to content

Commit

Permalink
Rename object_roles back to object_permissions for compatibility
Browse files Browse the repository at this point in the history
galaxy.synclist_owner Role created via AAH-1092
Issue: AAH-1093
  • Loading branch information
bmclaughlin committed Jan 14, 2022
1 parent ffb0bc4 commit f487da3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion galaxy_ng/app/access_control/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def to_internal_value(self, data):
group_filter[field] = group_data[field]
try:
group = auth_models.Group.objects.get(**group_filter)
internal[group] = group_data['object_roles']
internal[group] = group_data['object_permissions']
except auth_models.Group.DoesNotExist:
raise ValidationError(detail={
'groups': _("Group name=%s, id=%s does not exist") % (
Expand Down
6 changes: 0 additions & 6 deletions galaxy_ng/app/auth/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ def _ensure_synclists(self, group):
policy=SYNCLIST_DEFAULT_POLICY,
name=distro_name)






# TODO need to create role for synclist owners
default_synclist.groups = {group: ['galaxy.synclist_owner']}
default_synclist.save()
return default_synclist
Expand Down

0 comments on commit f487da3

Please sign in to comment.