Module: ODDB::State::User::Contributor

Includes:
Admin::User
Defined in:
src/state/user/contributor.rb

Constant Summary

RESOLVE_STATES =
{
}

Constants included from Admin::User

RESOLVE_STATES

Instance Method Summary (collapse)

Methods included from Admin::User

#user_navigation

Instance Method Details

- (Object) resolve_state(pointer, type = :standard)



21
22
23
24
25
26
27
28
29
30
31
32
# File 'src/state/user/contributor.rb', line 21

def resolve_state(pointer, type=:standard)
  if(klass = @viral_module::RESOLVE_STATES[pointer.skeleton])
    @session[:allowed] ||= []
    test = [pointer, pointer.parent]
    if(@session[:allowed].any? { |obj| 
      test.include?(obj.pointer) })
      klass
    end
  else
    super
  end
end