app/models/ability.rb
def user_groups
    groups = super

    if on_campus
      groups += [AdminPolicy::PUBLIC_CAMPUS_GROUP]
      groups += [AdminPolicy::UCSB_CAMPUS_GROUP] if current_user.ucsb_user?
    end

    groups
  end
# For fedora objects that have an admin policy assigned to
# them, some of the rights that a user will be granted are
# defined in the policy file: app/models/admin_policy.rb
For fedora objects that have an admin policy assigned to
them, some of the rights that a user will be granted are
defined in the policy file: app/models/admin_policy.rb
For fedora objects that have an admin policy assigned to them some of the rights that a user will be granted are defined in the policy file : app / models / admin_policy . rb
def user_groups
    groups = super
    if on_campus
      groups += [AdminPolicy::PUBLIC_CAMPUS_GROUP]
      groups += [AdminPolicy::UCSB_CAMPUS_GROUP] if current_user.ucsb_user?
    end
    groups
  end
def user_groups groups = super if on_campus groups += [ AdminPolicy :: PUBLIC_CAMPUS_GROUP ] groups += [ AdminPolicy :: UCSB_CAMPUS_GROUP ] if current_user . ucsb_user? end groups end
For fedora objects that have an admin policy assigned to
them, some of the rights that a user will be granted are
defined in the policy file: app/models/admin_policy.rb
For fedora objects that have an admin policy assigned to them some of the rights that a user will be granted are defined in the policy file : app / models / admin_policy . rb