Module: ODDB::State::Admin::PowerUser

Includes:
LoginMethods, User
Defined in:
src/state/admin/poweruser.rb,
src/state/global_predefine.rb

Constant Summary

Constants included from User

RESOLVE_STATES

Instance Method Summary (collapse)

Methods included from LoginMethods

#autologin, #login

Methods included from User

#resolve_state, #user_navigation

Instance Method Details

- (Object) limit_state



16
17
18
19
20
# File 'src/state/admin/poweruser.rb', line 16

def limit_state
  user = @session.user
  state = State::User::InvalidUser.new(@session, user)
  reconsider_permissions(user, state)
end

- (Boolean) limited?

Returns:

  • (Boolean)


13
14
15
# File 'src/state/admin/poweruser.rb', line 13

def limited?
  super && !@session.allowed?('view', 'org.oddb')
end