Skip to content

Commit

Permalink
Set missing ability
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhq committed May 20, 2015
1 parent e8977a0 commit 538380f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/ability.rb
Expand Up @@ -12,19 +12,19 @@ def initialize(user)
can :manage, StudyPlan
can [:check_for_study_plan], Career
can [:update_password], User, :id=>user.id
can [:create, :read, :update, :search, :assign_roles, :add_new_role, :block_or_unblock, :manage_personal_record_file, :update_country_and_state, :auth_to_sign_responsive_letter, :profile, :download_personal_record_file, :matching_date_and_user, :new_contract, :generate_contract, :new_teacher_dictamination, :create_teacher_dictamination, :get_active_subjects_by_study_plan_id, :accept_reject_dictamination, :reject_dictamination, :accept_dictamination, :download_evidence, :new_group, :load_group_preferences, :generate_full_groups], Person
can [:create, :read, :update, :search, :assign_roles, :add_new_role, :block_or_unblock, :manage_personal_record_file, :update_country_and_state, :auth_to_sign_responsive_letter, :profile, :download_personal_record_file, :matching_date_and_user, :new_contract, :generate_contract, :new_teacher_dictamination, :create_teacher_dictamination, :get_active_subjects_by_study_plan_id, :accept_reject_dictamination, :reject_dictamination, :accept_dictamination, :download_evidence, :new_group, :load_group_preferences, :generate_full_groups, :generate_single_group], Person
when 'finance'
can [:update_password], User, :id=>user.id
can [:create, :read, :update, :assign_roles, :add_new_role, :profile, :download_personal_record_file, :matching_date_and_user, :new_contract, :generate_contract], Person
when 'academic_coordinator'
can [:enable, :create_schedule, :get_active_classrooms_by_campus_id, :get_active_time_slots_by_campus_id, :get_period_years_by_study_plan_id, :get_period_months_by_period_detail_id], StudyPlan
can [:update_password], User, :id=>user.id
can [:read, :assign_roles, :search, :add_new_role, :block_or_unblock, :manage_personal_record_file, :update_country_and_state, :auth_to_sign_responsive_letter, :profile, :download_personal_record_file, :matching_date_and_user, :new_contract, :generate_contract, :new_teacher_dictamination, :create_teacher_dictamination, :get_active_subjects_by_study_plan_id, :accept_reject_dictamination, :reject_dictamination, :accept_dictamination, :download_evidence, :new_group, :load_group_preferences, :generate_full_groups], Person
can [:read, :assign_roles, :search, :add_new_role, :block_or_unblock, :manage_personal_record_file, :update_country_and_state, :auth_to_sign_responsive_letter, :profile, :download_personal_record_file, :matching_date_and_user, :new_contract, :generate_contract, :new_teacher_dictamination, :create_teacher_dictamination, :get_active_subjects_by_study_plan_id, :accept_reject_dictamination, :reject_dictamination, :accept_dictamination, :download_evidence, :new_group, :load_group_preferences, :generate_full_groups, :generate_single_group], Person
when 'head_of_school_control'
can [:update_password], User, :id=>user.id
can [:create, :read, :update], Notification, :user_id=>user.id
can [:get_period_years_by_study_plan_id, :get_period_months_by_period_detail_id], StudyPlan
can [:create, :read, :search, :assign_roles, :add_new_role, :block_or_unblock, :manage_personal_record_file, :update_country_and_state, :auth_to_sign_responsive_letter, :profile, :download_personal_record_file, :matching_date_and_user, :new_contract, :generate_contract, :new_teacher_dictamination, :create_teacher_dictamination, :get_active_subjects_by_study_plan_id, :accept_reject_dictamination, :reject_dictamination, :accept_dictamination, :download_evidence, :new_group, :load_group_preferences, :generate_full_groups], Person
can [:create, :read, :search, :assign_roles, :add_new_role, :block_or_unblock, :manage_personal_record_file, :update_country_and_state, :auth_to_sign_responsive_letter, :profile, :download_personal_record_file, :matching_date_and_user, :new_contract, :generate_contract, :new_teacher_dictamination, :create_teacher_dictamination, :get_active_subjects_by_study_plan_id, :accept_reject_dictamination, :reject_dictamination, :accept_dictamination, :download_evidence, :new_group, :load_group_preferences, :generate_full_groups, :generate_single_group], Person
when 'teacher'
can [:update_password], User, :id=>user.id
can [:search, :profile, :download_personal_record_file, :matching_date_and_user], Person
Expand Down

0 comments on commit 538380f

Please sign in to comment.