lib/spontaneous/rack/user_helpers.rb in spontaneous-0.2.0.alpha2 vs lib/spontaneous/rack/user_helpers.rb in spontaneous-0.2.0.alpha3

- old
+ new

@@ -3,10 +3,10 @@ module Spontaneous module Rack module UserHelpers def unauthorised! - halt 401#, "You do not have the necessary permissions to update the '#{name}' field" + halt 403#, "You do not have the necessary permissions to update the '#{name}' field" end def api_key request.cookies[AUTH_COOKIE] end