Sha256: 28ecf777fdc27036fe154c69913a26035efc9e121df60cb4073262a2e1e42b30
Contents?: true
Size: 409 Bytes
Versions: 62
Compression:
Stored size: 409 Bytes
Contents
# frozen_string_literal: true module Decidim # This cell renders the profile of the given membership in the admin section. # It includes links to manage the membership: promote/demote admin, remove # from group. class UserGroupAdminMembershipProfileCell < Decidim::UserGroupMembershipProfileCell delegate :user, to: :model def admin_membership? model.role == "admin" end end end
Version data entries
62 entries across 62 versions & 1 rubygems