created can_manage_comments helper for rendering button
This commit is contained in:
parent
84cd952b57
commit
a3b6f204cb
4 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue