fix the build
This commit is contained in:
parent
5098baee2f
commit
cbcb9363f4
|
@ -1,4 +1,5 @@
|
|||
class GroupActionLogger
|
||||
|
||||
def initialize(acting_user, group)
|
||||
@acting_user = acting_user
|
||||
@group = group
|
||||
|
@ -57,22 +58,21 @@ class GroupActionLogger
|
|||
|
||||
private
|
||||
|
||||
def excluded_attributes
|
||||
[
|
||||
:bio_cooked,
|
||||
:updated_at,
|
||||
:created_at,
|
||||
: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
|
||||
def excluded_attributes
|
||||
[
|
||||
:bio_cooked,
|
||||
:updated_at,
|
||||
:created_at,
|
||||
:user_count
|
||||
]
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue