module AuthLh::UserManagement
Public Class Methods
included(base)
click to toggle source
# File lib/auth_lh/user_management.rb, line 3 def self.included(base) base.extend(ClassMethods) end
Public Instance Methods
allowed_local_shop_codes(current_shop_code=nil)
click to toggle source
# File lib/auth_lh/user_management.rb, line 19 def allowed_local_shop_codes(current_shop_code=nil) (@auth_user.local_app_shop_codes + [current_shop_code]).compact.uniq end
auth_user()
click to toggle source
# File lib/auth_lh/user_management.rb, line 7 def auth_user if @auth_user.nil? @auth_user = self.class.find_external(login) end @auth_user end
auth_user=(val)
click to toggle source
# File lib/auth_lh/user_management.rb, line 15 def auth_user=(val) @auth_user = val end