Class: Yus::TokenSession
- Inherits:
-
EntitySession
- Object
- Session
- EntitySession
- Yus::TokenSession
- Defined in:
- lib/yus/session.rb
Instance Method Summary collapse
-
#allowed?(*args) ⇒ Boolean
TokenSession.
Methods inherited from EntitySession
#generate_token, #get_preference, #initialize, #name, #ping, #set_preference, #set_preferences, #valid?
Methods inherited from Session
#affiliate, #create_entity, #delete_entity, #destroy!, #disaffiliate, #dump_to_yaml, #entities, #expired?, #find_entity, #grant, #initialize, #last_login, #remove_token, #rename, #revoke, #set_entity_preference, #set_password
Constructor Details
This class inherits a constructor from Yus::EntitySession
Instance Method Details
#allowed?(*args) ⇒ Boolean
TokenSession
334 335 336 337 338 339 340 341 |
# File 'lib/yus/session.rb', line 334 def allowed?(*args) # TokenSession key, arg, = args if key == 'set_password' || ( key == 'edit' && arg == 'yus.entities' ) false else super end end |