app/models/hydra/access_controls/permission.rb in hydra-access-controls-10.4.0.rc1 vs app/models/hydra/access_controls/permission.rb in hydra-access-controls-10.4.0.rc2
- old
+ new
@@ -42,9 +42,18 @@
def agent_name
URI.decode(parsed_agent.last)
end
+ def update(*)
+ super.tap { reset }
+ end
+
+ def reset
+ @access = nil
+ @parsed_agent = nil
+ end
+
def access
@access ||= mode.first.rdf_subject.to_s.split('#').last.downcase.sub('write', 'edit')
end
def type