Increased test coverage to Following user public page.
This commit is contained in:
committed by
Senén Rodero Rodríguez
parent
b0c571e658
commit
cef67c50a8
@@ -81,7 +81,7 @@ class UsersController < ApplicationController
|
||||
end
|
||||
|
||||
def author?(proposal)
|
||||
proposal.author_id == current_user.id
|
||||
proposal.author_id == current_user.id if current_user
|
||||
end
|
||||
|
||||
def authorized_current_user?
|
||||
|
||||
Reference in New Issue
Block a user