app/models/hydra/access_controls/permission.rb in hydra-access-controls-9.1.3 vs app/models/hydra/access_controls/permission.rb in hydra-access-controls-9.1.4
- old
+ new
@@ -1,9 +1,11 @@
module Hydra::AccessControls
AGENT_URL_PREFIX = "http://projecthydra.org/ns/auth/".freeze
GROUP_AGENT_URL_PREFIX = "http://projecthydra.org/ns/auth/group".freeze
PERSON_AGENT_URL_PREFIX = 'http://projecthydra.org/ns/auth/person'.freeze
class Permission < AccessControlList
+ has_many :admin_policies, inverse_of: :default_permissions, class_name: 'Hydra::AdminPolicy'
+
def initialize(args)
super()
build_agent(args[:name], args[:type].to_s)
build_access(args[:access])
end