UX: drop the automatic_membership_retroactive column from groups model. (#9430)

This commit is contained in:
Vinoth Kannan
2020-04-22 22:07:39 +05:30
committed by GitHub
parent bf0c055a9a
commit df0c386f8a
25 changed files with 144 additions and 82 deletions

View File

@ -10,7 +10,6 @@ class BasicGroupSerializer < ApplicationSerializer
:messageable_level,
:visibility_level,
:automatic_membership_email_domains,
:automatic_membership_retroactive,
:primary_group,
:title,
:grant_trust_level,
@ -56,10 +55,6 @@ class BasicGroupSerializer < ApplicationSerializer
scope.is_admin?
end
def include_automatic_membership_retroactive?
scope.is_admin?
end
def include_has_messages?
staff? || scope.can_see_group_messages?(object)
end