return (Link.where(tail_uuid: self.uuid,
head_uuid: all_users_group[:uuid],
link_class: 'permission',
- name: 'can_read').first
- or
+ name: 'can_read').first or
Link.create(tail_uuid: self.uuid,
head_uuid: all_users_group[:uuid],
link_class: 'permission',
# Give the special "System group" permission to manage this user and
# all of this user's stuff.
- #
def add_system_group_permission_link
+ return true if uuid == system_user_uuid
act_as_system_user do
Link.create(link_class: 'permission',
name: 'can_manage',