Class: Pageflow::Configuration::Permissions
- Inherits:
-
Object
- Object
- Pageflow::Configuration::Permissions
- Defined in:
- lib/pageflow/configuration/permissions.rb
Overview
Permissions related options to be defined in the pageflow initializer of the main app.
Instance Attribute Summary collapse
-
#only_admins_may_see_admin_boolean ⇒ Object
Restrict visibility of admin flag on user admin page to admins.
-
#only_admins_may_update_features ⇒ Object
Restrict access to features tabs to admins.
-
#only_admins_may_update_site ⇒ Object
Restrict access to site drop down on entry edit admin page to admins.
Instance Method Summary collapse
-
#initialize ⇒ Permissions
constructor
A new instance of Permissions.
Constructor Details
#initialize ⇒ Permissions
Returns a new instance of Permissions.
6 7 8 9 10 |
# File 'lib/pageflow/configuration/permissions.rb', line 6 def initialize @only_admins_may_update_features = false @only_admins_may_see_admin_boolean = false @only_admins_may_update_site = false end |
Instance Attribute Details
#only_admins_may_see_admin_boolean ⇒ Object
Restrict visibility of admin flag on user admin page to admins. Defaults to false.
19 20 21 |
# File 'lib/pageflow/configuration/permissions.rb', line 19 def only_admins_may_see_admin_boolean @only_admins_may_see_admin_boolean end |
#only_admins_may_update_features ⇒ Object
Restrict access to features tabs to admins. Defaults to false.
14 15 16 |
# File 'lib/pageflow/configuration/permissions.rb', line 14 def only_admins_may_update_features @only_admins_may_update_features end |
#only_admins_may_update_site ⇒ Object
Restrict access to site drop down on entry edit admin page to admins. Defaults to false.
24 25 26 |
# File 'lib/pageflow/configuration/permissions.rb', line 24 def only_admins_may_update_site @only_admins_may_update_site end |