1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-05 16:24:21 +01:00
fab-manager/app/views/api/event_themes/index.json.jbuilder

7 lines
189 B
Plaintext
Raw Normal View History

2016-06-30 09:34:26 +02:00
user_is_admin = (current_user and current_user.is_admin?)
2016-06-29 10:38:04 +02:00
json.array!(@event_themes) do |theme|
json.extract! theme, :id, :name
2016-06-30 09:34:26 +02:00
json.related_to theme.events.count if user_is_admin
2016-06-29 10:38:04 +02:00
end