relocate some functions
This commit is contained in:
parent
13206c23c0
commit
6f3a0f7d3a
4 changed files with 22 additions and 30 deletions
|
|
@ -28,14 +28,6 @@ module UsersHelper
|
|||
roles.map{ |x| x[0].titleize + ' (' + x[1].join(', ') + ')' }.join ', '
|
||||
end
|
||||
|
||||
def can_manage_volunteers(conference)
|
||||
if (current_user.has_role? :organizer, conference) || (current_user.has_role? :volunteers_coordinator, conference)
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
def user_change_description(version)
|
||||
if version.event == 'create'
|
||||
link_to_user(version.item_id) + ' signed up'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue