created can_manage_comments helper for rendering button

This commit is contained in:
raluka 2015-08-26 22:09:36 +02:00
parent 84cd952b57
commit a3b6f204cb
4 changed files with 8 additions and 4 deletions

View file

@ -263,6 +263,10 @@ module ApplicationHelper
end
end
def can_manage_comments(conference)
(current_user.has_role? :organizer, conference) || (current_user.has_role? :cfp, conference)
end
def sign_in_path
if CONFIG['authentication']['ichain']['enabled']
new_user_ichain_session_path