lib/ury_rapid/server/helpers/auth.rb
def privilege_set(suppress_error = false)
          rack_auth = Rack::Auth::Basic::Request.new(request.env)
          AuthRequest.request(environment, rack_auth)
        rescue Kankri::AuthenticationFailure
          not_authorised unless suppress_error
        end
# Gets the set of privileges the user has
#
# This fails with HTTP 401 if the user does not exist.
#
# @return [Array] An array of privilege symbols.  If suppress_error is
#   true and an authentication failure occurs, this may be nil.
Gets the set of privileges the user has
This fails with HTTP 401 if the user does not exist.
Gets the set of privileges the user has This fails with HTTP 401 if the user does not exist .
def privilege_set(suppress_error = false)
          rack_auth = Rack::Auth::Basic::Request.new(request.env)
          AuthRequest.request(environment, rack_auth)
        rescue Kankri::AuthenticationFailure
          not_authorised unless suppress_error
        end
def privilege_set ( suppress_error = false ) rack_auth = Rack :: Auth :: Basic :: Request . new ( request . env ) AuthRequest . request ( environment , rack_auth ) rescue Kankri :: AuthenticationFailure not_authorised unless suppress_error end
Gets the set of privileges the user has
This fails with HTTP 401 if the user does not exist.
Gets the set of privileges the user has This fails with HTTP 401 if the user does not exist .
An array of privilege symbols. If suppress_error is true and an authentication failure occurs, this may be nil.
An array of privilege symbols . If suppress_error is true and an authentication failure occurs this may be nil .
Array
suppress_error