Class: Decidim::FeedsUi::Permissions

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

Instance Method Summary collapse

Instance Method Details

#permissionsObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/permissions/decidim/feeds_ui/permissions.rb', line 6

def permissions
  return permission_action unless user

  case permission_action.subject
  when :users
    case permission_action.action
    when :read
      allow! if can_access?
    end
  end

  permission_action
end