Skip to content

Commit

Permalink
Remove deprecated user permission type
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Nov 23, 2015
1 parent e9eed5f commit 92285a0
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -61,9 +61,6 @@ def build_agent(name, type)
Agent.new(::RDF::URI.new("#{GROUP_AGENT_URL_PREFIX}##{name}"))
when "person"
Agent.new(::RDF::URI.new("#{PERSON_AGENT_URL_PREFIX}##{name}"))
when "user"
Deprecation.warn Permission, "Passing \"user\" as the type to Permission is deprecated. Use \"person\" instead. This will be an error in ActiveFedora 9."
Agent.new(::RDF::URI.new("#{PERSON_AGENT_URL_PREFIX}##{name}"))
else
raise ArgumentError, "Unknown agent type #{type.inspect}"
end
Expand Down

0 comments on commit 92285a0

Please sign in to comment.