From 989d1bdda44ef5a517d99d5e9f8036038ca43ec4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 17 Aug 2016 13:26:41 +0200 Subject: [PATCH] Applied rubocop. --- app/models/token.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/token.rb b/app/models/token.rb index 6a0b6ce6c..fc02570ee 100644 --- a/app/models/token.rb +++ b/app/models/token.rb @@ -84,7 +84,7 @@ returns local_permissions = [data[:permission]] end match = false - local_permissions.each {|local_permission| + local_permissions.each { |local_permission| next if !token.preferences[:permission].include?(local_permission) match = true break