permissions_controller.rb revision 0b611cf877554b1aa910fa23099220f2d1d15e89
#
# Permissions list administration of a team, only accessible by ontology owners
#
class PermissionsController < PrivilegeList::Base
belongs_to :ontology
protected
def relation_list
@relation_list ||= RelationList.new [parent, :permissions],
:model => Permission,
:collection => collection,
:association => :subject,
:scope => [User, Team]
end
def authorize_parent
authorize! :permissions, parent
end
end