module Lanes::API::Handlers::Screens
Public Class Methods
get()
click to toggle source
# File lib/lanes/api/handlers/screens.rb, line 8 def self.get lambda do authentication = Lanes::API::AuthenticationProvider.new(request) if authentication.current_user.nil? return json_reply std_api_reply :get, {}, success: true end screens = Lanes::Screen.select do | screen | authentication.current_user.can_read?(screen.model) end # Lanes::Screen.each_group json_reply std_api_reply :get, { screens: screens.map{|s| s.identifier } }, success: true end end