You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
273 B
6 lines
273 B
5 years ago
|
json.extract! @major, :id, :code, :name, :template_major
|
||
|
json.school_id @major.school.id
|
||
|
json.school_name @major.school.name
|
||
|
|
||
|
can_manager = @major.manager?(current_user) || @major.school.manager?(current_user) || current_user.admin_or_business?
|
||
|
json.can_manager can_manager
|