fix the build
This commit is contained in:
parent
5098baee2f
commit
cbcb9363f4
|
@ -1,4 +1,5 @@
|
||||||
class GroupActionLogger
|
class GroupActionLogger
|
||||||
|
|
||||||
def initialize(acting_user, group)
|
def initialize(acting_user, group)
|
||||||
@acting_user = acting_user
|
@acting_user = acting_user
|
||||||
@group = group
|
@group = group
|
||||||
|
@ -57,22 +58,21 @@ class GroupActionLogger
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def excluded_attributes
|
def excluded_attributes
|
||||||
[
|
[
|
||||||
:bio_cooked,
|
:bio_cooked,
|
||||||
:updated_at,
|
:updated_at,
|
||||||
:created_at,
|
:created_at,
|
||||||
:user_count
|
:user_count
|
||||||
]
|
]
|
||||||
end
|
|
||||||
|
|
||||||
def default_params
|
|
||||||
{ group: @group, acting_user: @acting_user }
|
|
||||||
end
|
|
||||||
|
|
||||||
def can_edit?
|
|
||||||
unless Guardian.new(@acting_user).can_log_group_changes?(@group)
|
|
||||||
raise Discourse::InvalidParameter
|
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
def default_params
|
||||||
|
{ group: @group, acting_user: @acting_user }
|
||||||
|
end
|
||||||
|
|
||||||
|
def can_edit?
|
||||||
|
raise Discourse::InvalidParameters.new unless Guardian.new(@acting_user).can_log_group_changes?(@group)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue