From: Shrey Date: Fri, 19 Jun 2015 08:22:11 +0000 (+0530) Subject: Added a few tests X-Git-Tag: live~3501^2~141 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/25737ce46e27d98e2e48eee6ab996cad259c3b83 Added a few tests --- diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 407646830..bcea64be3 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -219,7 +219,7 @@ class IssuesController < ApplicationController end def check_permission - unless @user.administrator? + unless @user.administrator? or @user.moderator? flash[:error] = t('application.require_admin.not_an_admin') redirect_to root_path end diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 3187d0b27..29216de72 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -38,7 +38,7 @@