Method: Lipsiadmin::AccessControl::Mapper#allowed

Defined in:
lib/access_control/base.rb

#allowedObject

Return allowed actions/controllers



119
120
121
122
123
124
125
126
127
# File 'lib/access_control/base.rb', line 119

def allowed
  # I know is a double check but is better 2 times that no one.
  if allowed?
    @project_modules.each { |pm| @allowed.concat pm.allowed  }
    @allowed.uniq
  else
    []
  end
end