From 729b2c1b270966ebe60ccd894d44d12ec8836016 Mon Sep 17 00:00:00 2001 From: Andrey Subbota Date: Thu, 15 Nov 2012 12:39:30 +0400 Subject: [PATCH] Remove return(false) from before_filter "require_watcher_edit_priviledges" --- app/controllers/watchers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb index 7e2f4c8..dd13d2f 100644 --- a/app/controllers/watchers_controller.rb +++ b/app/controllers/watchers_controller.rb @@ -19,7 +19,7 @@ class WatchersController < ApplicationController def require_watcher_edit_priviledges can_edit = current_user == @watcher.user || current_user.admin? - redirect_to(root_path) and return(false) unless can_edit + redirect_to(root_path) unless can_edit end end -- libgit2 0.21.2