Commit 729b2c1b270966ebe60ccd894d44d12ec8836016
1 parent
5aa64429
Exists in
master
and in
1 other branch
Remove return(false) from before_filter "require_watcher_edit_priviledges"
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/watchers_controller.rb
... | ... | @@ -19,7 +19,7 @@ class WatchersController < ApplicationController |
19 | 19 | |
20 | 20 | def require_watcher_edit_priviledges |
21 | 21 | can_edit = current_user == @watcher.user || current_user.admin? |
22 | - redirect_to(root_path) and return(false) unless can_edit | |
22 | + redirect_to(root_path) unless can_edit | |
23 | 23 | end |
24 | 24 | |
25 | 25 | end | ... | ... |