Module: Eployday::PermissionChecker
- Defined in:
- lib/eployday/permission_checker.rb
Class Method Summary collapse
Class Method Details
.allowed?(user, list = load_whitelist) ⇒ Boolean
4 5 6 |
# File 'lib/eployday/permission_checker.rb', line 4 def allowed?(user, list=load_whitelist) list.include?(user.nick) and user.authed? end |
.load_whitelist ⇒ Object
8 9 10 |
# File 'lib/eployday/permission_checker.rb', line 8 def load_whitelist @whitelist = %w[steveklabnik carols10cents wilkie cl0ckw0rk ddagradi] end |