fix the build

This commit is contained in:
Régis Hanol 2017-01-04 14:23:21 +01:00
parent 5098baee2f
commit cbcb9363f4
1 changed files with 17 additions and 17 deletions

View File

@ -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