Class: Padrino::Admin::AccessControl::Authorization

Inherits:
Object
  • Object

Overview

Project Authorization Class.

Instance Attribute Summary

Instance Method Summary

Constructor Details

#initialize(*roles) {|_self| ... } ⇒ Authorization

Returns a new instance of Authorization.

Yields:

  • (_self)

Yield Parameters:

Instance Attribute Details

#allowed ⇒ Object (readonly)

Returns the value of attribute allowed

#denied ⇒ Object (readonly)

Returns the value of attribute denied

#project_modules ⇒ Object (readonly)

Returns the value of attribute project_modules

#roles ⇒ Object (readonly)

Returns the value of attribute roles

Instance Method Details

#allow(path) ⇒ Object

Allow a specified path.

#project_module(name, path, options = {}) ⇒ Object

Create a project module.

#protect(path) ⇒ Object

Protect access from.