Class: Pageflow::Configuration::Permissions

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializePermissions

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_booleanObject

Restrict visibility of admin flag on user admin page to admins. Defaults to false.

Since:

  • 12.1



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_featuresObject

Restrict access to features tabs to admins. Defaults to false.

Since:

  • 12.1



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_siteObject

Restrict access to site drop down on entry edit admin page to admins. Defaults to false.

Since:

  • 12.1



24
25
26
# File 'lib/pageflow/configuration/permissions.rb', line 24

def only_admins_may_update_site
  @only_admins_may_update_site
end