mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 13:31:44 +08:00
FIX: current value of flair icon missing in group manage UI
This commit is contained in:
parent
266c0c50d7
commit
1bef008a1e
|
@ -44,11 +44,11 @@ class GroupShowSerializer < BasicGroupSerializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_flair_icon?
|
def include_flair_icon?
|
||||||
is_group_owner && flair_icon.present?
|
flair_icon.present? && (is_group_owner || scope.is_admin?)
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_flair_type?
|
def include_flair_type?
|
||||||
is_group_owner && flair_type.present?
|
flair_type.present? && (is_group_owner || scope.is_admin?)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue
Block a user