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
|
||||
|
@ -71,8 +72,7 @@ class GroupActionLogger
|
|||
end
|
||||
|
||||
def can_edit?
|
||||
unless Guardian.new(@acting_user).can_log_group_changes?(@group)
|
||||
raise Discourse::InvalidParameter
|
||||
end
|
||||
raise Discourse::InvalidParameters.new unless Guardian.new(@acting_user).can_log_group_changes?(@group)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue