Class: Decidim::Pages::Permissions

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

Instance Method Summary collapse

Instance Method Details

#permissionsObject



6
7
8
9
10
11
12
# File '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