mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
7 lines
189 B
Ruby
7 lines
189 B
Ruby
user_is_admin = (current_user and current_user.is_admin?)
|
|
|
|
json.array!(@event_themes) do |theme|
|
|
json.extract! theme, :id, :name
|
|
json.related_to theme.events.count if user_is_admin
|
|
end
|