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