Sha256: 976de8cfab52ef8d543e310e881108c47d4e8de9f16bb114e672770cb346dcdb
Contents?: true
Size: 374 Bytes
Versions: 3
Compression:
Stored size: 374 Bytes
Contents
module Orange class UserResource < Orange::ModelResource use Orange::User call_me :users def afterLoad orange[:admin].add_link("Settings", :resource => @my_orange_name, :text => 'Users') end def access_allowed?(packet, user) u = model_class.first(:open_id => user) return false unless u u.allowed?(packet) end end end
Version data entries
3 entries across 3 versions & 1 rubygems