Class: Decidim::Pages::Permissions

Inherits:
DefaultPermissions show all
Defined in:
decidim-pages/app/permissions/decidim/pages/permissions.rb

Instance Method Summary collapse

Methods inherited from DefaultPermissions

#initialize

Constructor Details

This class inherits a constructor from Decidim::DefaultPermissions

Instance Method Details

#permissionsObject


6
7
8
9
10
11
12
# File 'decidim-pages/app/permissions/decidim/pages/permissions.rb', line 6

def permissions
  return permission_action if permission_action.scope != :admin

  permission_action.allow! if permission_action.action == :update

  permission_action
end