Class: TentD::API::Followers::AuthorizeReadMany

Inherits:
Middleware
  • Object
show all
Defined in:
lib/tentd/api/followers.rb

Instance Method Summary collapse

Methods inherited from Middleware

#call, #initialize

Methods included from Authorizable

#authorize_env!, #authorize_env?

Constructor Details

This class inherits a constructor from TentD::API::Middleware

Instance Method Details

#action(env) ⇒ Object



31
32
33
34
# File 'lib/tentd/api/followers.rb', line 31

def action(env)
  env.full_read_authorized = authorize_env?(env, :read_followers)
  env
end