aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb
index 0e805200f43..f714d49b910 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/roles_helper.rb
@@ -48,12 +48,12 @@ module RolesHelper
def role_name(role)
case(role.to_s)
- when 'admin': 'Administrators'
- when 'default-admin': 'Administrators'
- when 'user': 'Users'
- when 'default-user': 'Users'
- when 'codeviewer': 'Code viewers'
- when 'default-codeviewer': 'Code viewers'
+ when 'admin' then 'Administrators'
+ when 'default-admin' then 'Administrators'
+ when 'user' then 'Users'
+ when 'default-user' then 'Users'
+ when 'codeviewer' then 'Code viewers'
+ when 'default-codeviewer' then 'Code viewers'
else role.to_s
end
end