mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
relocate some functions
This commit is contained in:
parent
5b1a730e19
commit
2e0f7e9b42
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