Forums » General discussions » Can I delete some features and function in fedena.?
Hi guys, i wonder if this fedena can remove some features and function such as manage news, time table, human resource and finance.?

any solution.?

pls teach me step by step...
Hi riakai,

please open authorization_rules.rb file and comment corresponding actions. From the authorization_rules.rb file you can restrict any user to access the corresponding view pages.
thnk Surajit,

can i knw the path where the file located to open it.?

i cant find it...
Surajit,

can u teach me by giving some example on how to delete some feature from being view by any user such as admin for this fedena version.?

the super admin still can view it right.?
which part did i need to change or edit.?
im confuse with it...


authorization do

#custom - privileges
role :examination_control do
includes :archived_exam_reports
has_permission_on [:exam],
:to => [
:index,
:previous_batch_exams,
:list_inactive_batches,
:list_inactive_exam_groups,
:previous_exam_marks,
:edit_previous_marks,
:update_previous_marks,
:create_exam,
:update_batch,
:create_examtype,
:create,:create_grading,
:delete,
:delete_examtype,
:delete_grading,
:edit,
:edit_examtype,
:edit_grading,
:grading_form_edit,
:rename_grading,
:update_subjects_dropdown,
:publish,
:grouping,
:update_exam_form,
:exam_wise_report,
:list_exam_types,
:generated_report,
:graph_for_generated_report,
:generated_report_pdf,
:consolidated_exam_report,
:consolidated_exam_report_pdf,
:subject_wise_report,
:subject_rank,
:course_rank,
:batch_groups,
:student_course_rank,
:student_course_rank_pdf,
:student_school_rank,
:student_school_rank_pdf,
:attendance_rank,
:student_attendance_rank,
:student_attendance_rank_pdf,
:generate_reports,
:generate_previous_reports,
:select_inactive_batches,
:settings,
:report_center,
:gpa_cwa_reports,
:list_batch_groups,
:ranking_level_report,
:student_ranking_level_report,
:student_ranking_level_report_pdf,
:transcript,
:student_transcript,
:student_transcript_pdf,
:combined_report,
:load_levels,
:student_combined_report,
:student_combined_report_pdf,
:load_batch_students,
:select_mode,
:select_batch_group,
:select_type,
:select_report_type,
:batch_rank,
:student_batch_rank,
:student_batch_rank_pdf,
:student_subject_rank,
:student_subject_rank_pdf,
:list_subjects,
:list_batch_subjects,
:generated_report2,
:generated_report2_pdf,
:grouped_exam_report,
:final_report_type,
:generated_report4,
:generated_report4_pdf,
:combined_grouped_exam_report_pdf
]
has_permission_on [:scheduled_jobs],
:to => [
:index
]
has_permission_on [:exam_groups],
:to => [
:index,
:new,
:create,
:update,
:destroy,
:show,
:edit,
:set_exam_minimum_marks,
:set_exam_maximum_marks,
:set_exam_weightage
]
has_permission_on [:exams],
:to => [
:index,
:show,
:new,
:create,
:edit,
:update,
:destroy,
:save_scores,
:query_data
]
# has_permission_on [:additional_exam],
# :to => [
# :index,
# :update_exam_form,
# :publish,
# :create_additional_exam,
# :update_batch
# ]

# has_permission_on [:additional_exam_groups],
# :to => [
# :index,
# :new,
# :create,
# :edit,
# :update,
# :destroy,
# :show,
# :initial_queries,
# :set_additional_exam_minimum_marks,
# :set_additional_exam_maximum_marks,
# :set_additional_exam_weightage,
# :set_additional_exam_group_name
# ]
# has_permission_on [:additional_exams],
# :to => [
# :index,
# :show,
# :new,
# :create,
# :edit,
# :update,
# :destroy,
# :save_additional_scores,
# :query_data
# ]
has_permission_on [:grading_levels],
:to => [
:index,
:show,
:edit,
:update,
:new,
:create,
:destroy

]
has_permission_on [:ranking_levels],
:to => [
:index,
:load_ranking_levels,
:create_ranking_level,
:edit_ranking_level,
:update_ranking_level,
:delete_ranking_level,
:ranking_level_cancel,
:change_priority
]
has_permission_on [:class_designations],
:to => [
:index,
:load_class_designations,
:create_class_designation,
:edit_class_designation,
:update_class_designation,
:delete_class_designation
]
has_permission_on [:descriptive_indicators],
:to=>[
:index,
:show,
:new,
:create,
:edit,
:update,
:destroy,
:reorder,
:destroy_indicator
]
has_permission_on [:fa_criterias],
:to=>[
:index,
:show
]
has_permission_on [:fa_groups],
:to=>[
:index,
:new,
:create,
:edit,
:update,
:show,
:destroy,
:assign_fa_groups,
:select_subjects,
:select_fa_groups,
:update_subject_fa_groups,
:new_fa_criteria,
:create_fa_criteria,
:edit_fa_criteria,
:update_fa_criteria,
:destroy_fa_criteria,
:reorder

]
has_permission_on [:observation_groups],
:to=>[
:index,
:new,
:create,
:edit,
:edit_observation,
:update,
:show,
:destroy,
:new_observation,
:create_observation,
:edit_osbervation,
:update_observation,
:destroy_observation,
:assign_courses,
:select_observation_groups,
:update_course_obs_groups,
:reorder
]
has_permission_on [:observations],
:to=>[
:show
]
has_permission_on [:assessment_scores],
:to=>[
:exam_fa_groups,
:fa_scores,
:observation_groups,
:observation_scores
]
has_permission_on [:cce_exam_categories],
:to=>[
:index,
:new,
:create,
:show,
:edit,
:update,
:destroy
]
has_permission_on [:cce_grade_sets],
:to=>[
:index,
:new,
:create,
:edit,
:update,
:destroy,
:show,
:index,
:new_grade,
:create_grade,
:edit_grade,
:update_grade,
:destroy_grade
]
has_permission_on [:cce_reports],
:to=>[
:index,
:create_reports,
:student_wise_report,
:student_report_pdf,
:student_transcript,
:student_report
]
has_permission_on [:cce_settings],
:to=>[
:index,
:basic,
:scholastic,
:co_scholastic
]
has_permission_on [:cce_weightages],
:to=>[
:index,
:new,
:create,
:show,
:edit,
:update,
:destroy,
:assign_courses,
:assign_weightages,
:select_weightages,
:update_course_weightages
]
has_permission_on [:batches],:to=>[:batches_ajax]

end

role :enter_results do
includes :archived_exam_reports
has_permission_on [:exam],
:to => [
:index,
:previous_batch_exams,
:list_inactive_batches,
:list_inactive_exam_groups,
:previous_exam_marks,
:edit_previous_marks,
:update_previous_marks,
:create_exam,
:update_batch,
:exam_wise_report,
:list_exam_types,
:generated_report,
:graph_for_generated_report,
:generated_report_pdf,
:consolidated_exam_report,
:consolidated_exam_report_pdf,
:subject_wise_report,
:subject_rank,
:course_rank,
:batch_groups,
:student_course_rank,
:student_course_rank_pdf,
:student_school_rank,
:student_school_rank_pdf,
:attendance_rank,
:student_attendance_rank,
:student_attendance_rank_pdf,
:report_center,
:gpa_cwa_reports,
:list_batch_groups,
:ranking_level_report,
:student_ranking_level_report,
:student_ranking_level_report_pdf,
:transcript,
:student_transcript,
:student_transcript_pdf,
:combined_report,
:load_levels,
:student_combined_report,
:student_combined_report_pdf,
:load_batch_students,
:select_mode,
:select_batch_group,
:select_type,
:select_report_type,
:batch_rank,
:student_batch_rank,
:student_batch_rank_pdf,
:student_subject_rank,
:student_subject_rank_pdf,
:list_subjects,
:list_batch_subjects,
:generated_report2,
:generated_report2_pdf,
:grouped_exam_report,
:final_report_type,
:generated_report4,
:generated_report4_pdf,
:combined_grouped_exam_report_pdf
]
has_permission_on [:exam_groups],
:to => [
:index,
:show,
:set_exam_minimum_marks,
:set_exam_maximum_marks,
:set_exam_weightage,
:set_exam_group_name
]
has_permission_on [:exams],
:to => [
:index,
:show,
:save_scores
]
# has_permission_on [:additional_exam],
# :to =>[
# :create_additional_exam,
# :update_batch,
# :publish
# ]
# has_permission_on [:additional_exam_groups],
# :to =>[
# :index,
# :show,
# :set_additional_exam_minimum_marks,
# :set_additional_exam_maximum_marks,
# :set_additional_exam_weightage,
# :set_additional_exam_group_name
# ]
# has_permission_on [:additional_exams],
# :to => [
# :index,
# :show,
# :save_additional_scores
# ]
has_permission_on [:assessment_scores],
:to=>[
:exam_fa_groups,
:fa_scores,
:observation_groups,
:observation_scores
]
has_permission_on [:cce_reports],
:to=>[
:index,
:student_wise_report,
:student_report_pdf,
:student_transcript,
:student_report
]

end

role :view_results do
includes :archived_exam_reports
has_permission_on [:student], :to => [:reports]
has_permission_on [:exam], :to => [:index,
:exam_wise_report,
:list_exam_types,
:generated_report,
:graph_for_generated_report,
:generated_report_pdf,
:consolidated_exam_report,
:consolidated_exam_report_pdf,
:subject_wise_report,
:subject_rank,
:course_rank,
:batch_groups,
:student_course_rank,
:student_course_rank_pdf,
:student_school_rank,
:student_school_rank_pdf,
:attendance_rank,
:student_attendance_rank,
:student_attendance_rank_pdf,
:report_center,
:gpa_cwa_reports,
:list_batch_groups,
:ranking_level_report,
:student_ranking_level_report,
:student_ranking_level_report_pdf,
:transcript,
:student_transcript,
:student_transcript_pdf,
:combined_report,
:load_levels,
:student_combined_report,
:student_combined_report_pdf,
:load_batch_students,
:select_mode,
:select_batch_group,
:select_type,
:select_report_type,
:batch_rank,
:student_batch_rank,
:student_batch_rank_pdf,
:student_subject_rank,
:student_subject_rank_pdf,
:list_subjects,
:list_batch_subjects,
:generated_report2,
:generated_report2_pdf,
:grouped_exam_report,
:final_report_type,
:generated_report4,
:generated_report4_pdf,
:combined_grouped_exam_report_pdf
]
has_permission_on [:cce_reports],
:to=>[
:index,
:student_wise_report,
:student_report_pdf,
:student_transcript,
:student_report
]
end

role :admission do
has_permission_on [:student],
:to => [
:profile,
:admission1,
:admission2,
:admission3,
:previous_data,
:previous_data_edit,
:previous_subject,
:save_previous_subject,
:admission4,
:profile,
:add_guardian,
:edit,
:edit_guardian,
:guardians,
:del_guardian,
:list_students_by_course,
:show,
:view_all,
:profile_pdf,
:edit,
:show_previous_details,
:remove,
:change_to_former,
:delete,
:generate_tc_pdf,
:edit_admission4,
:fees,
:fee_details
]
end

role :students_control do
has_permission_on [:student] ,
:to => [
:academic_reports_pdf,
:academic_report,
:academic_report_all,
:profile,
:guardians,
:list_students_by_course,
:show,
:view_all,
:index,
:change_to_former,
:delete,:destroy,
:email,
:exam_report,
:update_student_result_for_examtype,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:remove,:reports,
:search_ajax,
:subject_wise_report,
:graph_for_previous_years_marks_overview,
:graph_for_student_annual_overview,
:graph_for_subject_wise_report_for_one_subject,
:graph_for_exam_report,
:graph_for_academic_report,
:generate_tc_pdf,
:generate_all_tc_pdf,
:advanced_search,
:advanced_search_pdf,
:edit,
:previous_data_edit,
:profile_pdf,
:edit_guardian,
:del_guardian,
:add_guardian,
:show_previous_details,
:list_doa_year,
:doa_equal_to_update,
:doa_less_than_update,
:doa_greater_than_update,
:list_dob_year,
:dob_equal_to_update,
:dob_less_than_update,
:dob_greater_than_update,
:list_batches,
:find_student,
:fees,
:fee_details,
:admission3_1,
:admission3_2,
:immediate_contact2
]
has_permission_on [:archived_student],
:to => [
:profile,
:reports,
:guardians,
:delete,
:destroy,
:generate_tc_pdf,
:consolidated_exam_report,
:consolidated_exam_report_pdf,
:academic_report,
:student_report,
:generated_report,
:generated_report_pdf,
:generated_report3,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:generated_report4,
:generated_report4_pdf,
:graph_for_generated_report,
:graph_for_generated_report3,
:graph_for_previous_years_marks_overview
]
has_permission_on [:exam],
:to =>[
:generated_report,
:generated_report_pdf,
:consolidated_exam_report,
:consolidated_exam_report_pdf,
:generated_report3,
:generated_report3_pdf,
:generated_report4,
:generated_report4_pdf,
:combined_grouped_exam_report_pdf,
:graph_for_generated_report,
:graph_for_generated_report3,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:academic_report,
:graph_for_previous_years_marks_overview
]
has_permission_on [:student_attendance],
:to =>[
:student,
:month
]
end

role :student_view do
has_permission_on [:student] ,
:to => [
:academic_reports_pdf,
:academic_report,
:academic_report_all,
:profile,
:guardians,
:list_students_by_course,
:show,
:view_all,
:index,
:email,
:exam_report,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:search_ajax,
:subject_wise_report,
:graph_for_previous_years_marks_overview,
:graph_for_student_annual_overview,
:graph_for_subject_wise_report_for_one_subject,
:graph_for_exam_report,
:graph_for_academic_report,
:advanced_search,
:advanced_search_pdf,
:profile_pdf,
:show_previous_details,
:list_doa_year,
:doa_equal_to_update,
:doa_less_than_update,
:doa_greater_than_update,
:list_dob_year,
:dob_equal_to_update,
:dob_less_than_update,
:dob_greater_than_update,
:list_batches,
:find_student,
:fees,
:fee_details,
:admission3_1,
:admission3_2,
:immediate_contact2
]
has_permission_on [:archived_student],
:to => [
:profile,
:reports,
:guardians,
:generate_tc_pdf,
:consolidated_exam_report,
:consolidated_exam_report_pdf,
:academic_report,
:student_report,
:generated_report,
:generated_report_pdf,
:generated_report3,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:generated_report4,
:generated_report4_pdf,
:graph_for_generated_report,
:graph_for_generated_report3,
:graph_for_previous_years_marks_overview
]
has_permission_on [:exam],
:to =>[
:generated_report,
:generated_report_pdf,
:consolidated_exam_report,
:consolidated_exam_report_pdf,
:generated_report3,
:generated_report3_pdf,
:generated_report4,
:generated_report4_pdf,
:combined_grouped_exam_report_pdf,
:graph_for_generated_report,
:graph_for_generated_report3,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:academic_report,
:graph_for_previous_years_marks_overview
]
has_permission_on [:student_attendance],
:to =>[
:student,
:month
]
end

role :manage_news do
has_permission_on [:news],
:to => [
:index,
:add,
:add_comment,
:all,
:delete,
:delete_comment,
:comment_approved,
:edit,
:search_news_ajax,
:view ]
end

role :manage_timetable do

has_permission_on [:class_timings], :to => [:index, :edit, :destroy, :show, :new, :create, :update]
has_permission_on [:weekday], :to => [:index, :week, :create]
has_permission_on [:timetable],
:to => [:index,
:new_timetable,
:update_timetable,
:view,
:edit_master,
:teachers_timetable,
:update_teacher_tt,
:update_timetable_view,
:destroy,
:employee_timetable,
:update_employee_tt,
:student_view,
:update_student_tt,
:weekdays,
:timetable,
:timetable_pdf,
:work_allotment
]
has_permission_on [:timetable_entries],
:to => [
:new,
:select_batch,
:new_entry,
:update_employees,
:delete_employee2,
:update_multiple_timetable_entries2,
:tt_entry_update2,
:tt_entry_noupdate2
]
# has_permission_on [:timetable],
# :to => [
# :index,
# :edit,
# :delete_subject,
# :select_class,
# :tt_entry_update,
# :tt_entry_noupdate,
# :update_multiple_timetable_entries,
# :update_timetable_view,
# :generate,
# :extra_class,
# :extra_class_edit,
# :list_employee_by_subject,
# :save_extra_class,
# :timetable,
# :weekdays,
# :view,
# :select_class2,
# :edit2,
# :update_employees,
# :update_multiple_timetable_entries2,
# :delete_employee2,
# :tt_entry_update2,
# :tt_entry_noupdate2,
# :timetable_pdf
# ]
end

role :timetable_view do
has_permission_on [:timetable], :to => [:index,
:update_timetable,
:view,
:teachers_timetable,
:update_teacher_tt,
:update_timetable_view,
:employee_timetable,
:update_employee_tt,
:student_view,
:update_student_tt,
:timetable,
:timetable_pdf
]
# has_permission_on [:timetable], :to => [:index,:select_class,:view, :update_timetable_view, :timetable_pdf, :timetable]
end

role :student_attendance_view do
has_permission_on [:attendance], :to => [:index,:report,:student_report]
has_permission_on [:attendance_reports], :to => [:index, :subject, :mode, :show, :year, :report, :filter, :student_details,:report_pdf,:filter_report_pdf]
has_permission_on [:student_attendance], :to => [:index, :student]
end

role :student_attendance_register do
has_permission_on [:attendance], :to => [:index,:register,:register_attendance]
has_permission_on [:attendances], :to => [:index, :list_subject, :show, :new, :create, :edit,:update, :destroy,:subject_wise_register,:daily_register]
has_permission_on [:student_attendance], :to => [:index]
has_permission_on [:attendance_reports], :to => [:index, :subject, :mode, :show, :year, :report, :filter, :student_details,:report_pdf,:filter_report_pdf]
end

role :add_new_batch do
has_permission_on [:configuration], :to => [:index]
has_permission_on [:courses], :to => [:index,:manage_course, :manage_batches,:find_course, :new, :create,:destroy,:edit,:update, :show, :update_batch,:grouped_batches,:create_batch_group,:edit_batch_group,:update_batch_group,:delete_batch_group]
has_permission_on [:batches], :to => [:index, :new, :create,:destroy,:edit,:update, :show, :init_data,:assign_tutor,:update_employees,:assign_employee,:batches_ajax]
has_permission_on [:subjects], :to => [:index, :new, :create,:destroy,:edit,:update, :show]
has_permission_on [:student], :to => [:electives, :assign_students, :unassign_students, :assign_all_students, :unassign_all_students, :profile, :guardians, :show_previous_details]
has_permission_on [:batch_transfers],
:to => [
:index,
:show,
:transfer,
:graduation,
:subject_transfer,
:get_previous_batch_subjects,
:update_batch,
:assign_previous_batch_subject,
:assign_all_previous_batch_subjects,
:new_subject,
:create_subject
]
end

role :subject_master do
has_permission_on [:configuration], :to => [:index]
has_permission_on [:student], :to => [:electives, :assign_students, :unassign_students, :assign_all_students, :unassign_all_students]
has_permission_on [:subjects], :to => [:index,:new,:create,:destroy,:edit, :update,:show]
end

role :academic_year do
has_permission_on [:configuration], :to => [:index]
has_permission_on [:academic_year],
:to => [
:index,
:add_course,
:migrate_classes,
:migrate_students,
:list_students,
:update_courses,
:upcoming_exams ]
end
role :sms_management do
has_permission_on [:configuration], :to => [:index]
has_permission_on [:sms], :to => [:index, :settings, :students, :batches, :employees, :departments,:all, :update_general_sms_settings, :list_students, :sms_all, :list_employees, :show_sms_messages, :show_sms_logs]
end
role :event_management do

has_permission_on [:event], :to => [:index, :show, :confirm_event, :cancel_event, :select_course, :event_group, :course_event, :remove_batch, :select_employee_department, :department_event, :remove_department,:edit_event]
has_permission_on [:calendar], :to => [:event_delete]
end

role :general_settings do
has_permission_on [:configuration], :to => [:index,:settings,:permissions]
has_permission_on [:student], :to => [:add_additional_details, :delete_additional_details, :edit_additional_details, :categories,:category_delete,:category_edit,:category_update ]
end

role :finance_control do
has_permission_on [:finance],
:to => [
:index,
:automatic_transactions,
:categories,
:donation,
:donation_receipt,
:expense_create,
:expense_edit,
:fee_collection,
:fee_submission,
:fees_received,
:fee_structure,
:fees_student_specific,
:income_create,
:income_edit,
:transactions,
:category_create,
:category_delete,
:category_edit,
:category_update,
:get_child_fee_element_form,
:get_new_fee_element_form,
:create_child_fee_element,
:create_new_fee_element,
:reset_fee_element,
:fee_collection_create,
:fee_collection_delete,
:fee_collection_edit,
:fee_collection_update,
:fee_structure_create,
:fee_structure_delete,
:fee_structure_edit,
:fee_structure_update,
:transaction_trigger_create,
:transaction_trigger_edit,
:transaction_trigger_update,
:transaction_trigger_delete,
:fees_student_search,
:search_logic,
:fees_received,
:fees_defaulters,
:fees_submission_index,
:fees_submission_batch,
:update_fees_collection_dates,
:load_fees_submission_batch,
:update_ajax,
:update_batches,
:update_fees_collection_dates_defaulters,
:fees_defaulters_students,
:monthly_report,
:update_monthly_report,
:year_report,
:update_year_report,
:approve_monthly_payslip,
:one_click_approve_submit,
:one_click_approve,
:employee_payslip_approve,
:employee_payslip_reject,
:employee_payslip_accept_form,
:employee_payslip_reject_form,
:payslip_index,
:view_monthly_payslip,
:view_monthly_payslip_search,
:update_monthly_payslip,:search_ajax,
:view_payslip_dept,
:update_dates,
:update_monthly_payslip_all,
:fee_structure_select_batch,
:fees_student_dates,
:fee_structure_batch,
:fees_structure_student_search,
:search_fees_structure,
:fees_structure_dates,
:fees_structure_result,
:salary_department,
:salary_employee,
:employee_payslip_monthly_report,
:direct_expenses,
:direct_income,
:donations_report,
:fees_report,
:batch_fees_report,
:salary_department_year,
:salary_employee_year,
:direct_expenses_year,
:direct_income_year,
:donations_report_year,
:fees_report_year,
:asset_liability,
:liability,
:create_liability,
:view_liability,
:each_liability_view,
:asset,
:create_asset,
:view_asset,
:each_asset_view,
:edit_liability,
:update_liability,
:delete_liability,
:edit_asset,
:update_asset,
:delete_asset,
:fee_collection_view,
:fee_collection_dates_batch,
:pay_fees_defaulters,
:fee_structure_fee_collection_date,
:fees_student_specific_dates,
:update_fees_specific,
:fees_index,
#new_fee-----------
:fees_create,
:master_fees,
:show_master_categories_list,
# :show_additional_fees_list,
:fees_particulars,
# :additional_fees,
# :additional_fees_create_form,
# :additional_fees_create,
# :additional_fees_view,
:add_particulars,
:fee_collection_batch_update,
:fees_submission_student,
:fees_submission_save,
:fee_particulars_update,
:student_or_student_category,
:fees_student_structure_search,
:fees_student_structure_search_logic,
:fee_structure_dates,
:fees_structure_for_student,
:master_fees_index,
:master_category_create,
:master_category_new,
:fees_particulars_new,
:fees_particulars_new2,
:fees_particulars_create,
:fees_particulars_create2,
:add_particulars_new,
:add_particulars_create,
:fee_collection_new,
:fee_collection_create,
:categories_new,
:categories_create,
:fee_discounts,
:fee_discount_new,
:load_discount_create_form,
:load_discount_batch,
:load_batch_fee_category,
:batch_wise_discount_create,
:category_wise_fee_discount_create,
:student_wise_fee_discount_create,
:update_master_fee_category_list,
:show_fee_discounts,
:edit_fee_discount,
:update_fee_discount,
:delete_fee_discount,
:collection_details_view,
:master_category_edit,
:master_category_update,
:master_category_delete,
:master_category_particulars,
:master_category_particulars_edit,
:master_category_particulars_update,
:master_category_particulars_delete,
# :additional_fees_list,
:additional_particulars,
:add_particulars_edit,
:add_particulars_update,
:add_particulars_delete,
# :additional_fees_edit,
# :additional_fees_update,
# :additional_fees_delete,
:month_date,
:compare_report,
:report_compare,
:graph_for_compare_monthly_report,
:update_fine_ajax,
:student_fee_receipt_pdf,
:update_student_fine_ajax,
:transaction_pdf,
:update_defaulters_fine_ajax,
:fee_defaulters_pdf,
:donation_receipt_pdf,
:donors,
:expense_list,
:expense_list_update,
:income_list,
:income_list_update,
:income_details,
:income_details_pdf,
:delete_transaction,
:partial_payment,
:donation_edit,
:donation_delete,
#pdf-------------
:pdf_fee_structure,

#graph-------------
:graph_for_update_monthly_report,

:view_employee_payslip,
:income_list_pdf,
:expense_list_pdf,
:asset_pdf,
:liability_pdf
]
has_permission_on [:xml],
:to => [
:create_xml,
:index,
:settings,
:download
]
has_permission_on [:payroll],
:to => [
:index,
:add_category,
:edit_category,
:delete_category,
:activate_category,
:inactivate_category,
:manage_payroll,
:update_dependent_fields,
:edit_payroll_details ]
end

role :hr_basics do
has_permission_on [:employee],
:to => [
:index,
:add_category,
:edit_category,
:delete_category,
:add_position,
:edit_position,
:delete_position,
:add_department,
:edit_department,
:delete_department,
:add_grade,
:edit_grade,
:delete_grade,
:admission1,
:update_positions,
:edit1,
:edit_personal,
:admission2,
:edit2,
:edit_contact,
:admission3,
:edit3,
:admission3_1,
:admission3_2,
:edit3_1,
:admission4,
:change_reporting_manager,
:reporting_manager_search,
:update_reporting_manager_name,
:edit4,
:search,
:search_ajax,
:select_reporting_manager,
:profile,
:profile_general,
:profile_personal,
:profile_address,
:profile_contact,
:profile_bank_details,
:profile_payroll_details,
:view_all,
:show,
:subject_assignment,
:update_subjects,
:select_department,
:update_employees,
:assign_employee,
:remove_employee,
:hr,
:select_department_employee,
:settings,
:employee_management,
:add_bank_details,
:edit_bank_details,
:add_additional_details,
:edit_additional_details,
:delete_bank_details,
:delete_additional_details,
:edit_privilege,
:employees_list,
:profile_pdf,
:leave_management,
:update_employees_select,
:leave_list,
:employee_leave_count_edit,
:employee_leave_count_update,
:employee_attendance

]
has_permission_on [:payroll] ,
:to => [
:add_category,
:edit_category,
:manage_payroll,
:activate_category,
:delete_category,
:inactivate_category ]
has_permission_on [:employee_attendance],
:to => [
:leave_app
]
end

role :employee_attendance do
has_permission_on [:employee],
:to => [
:hr,
:employee_attendance,
:search,
:search_ajax,
:employee_leave_count_edit,
:employee_leave_count_update,
:view_attendance
]
has_permission_on [:employee_attendances],
:to => [
:index,
:show,
:new,
:create,
:edit,
:update,
:destroy

]
has_permission_on [:employee_attendance],
:to => [
:add_leave_types,
:register,
:report,
:leave_management,
:edit_leave_types,
:delete_leave_types,
:update_attendance_form,
:update_attendance_report,
:individual_leave_application,
:all_employee_new_leave_application,
:all_employee_leave_application,
:update_employees_select,
:leave_list,
:leave_app,
:emp_attendance,
:employee_attendance_pdf,
:manual_reset,
:employee_leave_reset_all,
:update_employee_leave_reset_all,
:leave_reset_settings,
:employee_leave_reset_by_department,
:list_department_leave_reset,
:update_department_leave_reset,
:employee_leave_reset_by_employee,
:employee_search_ajax,
:employee_view_all,
:employees_list,
:employee_leave_details,
:employee_wise_leave_reset,
:leave_history,
:update_leave_history
]
end

role :payslip_powers do
has_permission_on [:employee],
:to => [
:hr,
:payslip,
:select_department_employee,
:rejected_payslip,
:update_rejected_employee_list,
:view_rejected_payslip,
:edit_rejected_payslip,
:update_rejected_payslip,
:update_employee_select_list,
:payslip_date_select,
:one_click_payslip_generation,
:payslip_revert_date_select,
:one_click_payslip_revert,
:ceate_monthly_select_list,
:add_payslip_category,
:create_payslip_category,
:remove_new_paylist_category,
:delete_payslip,
:view_payslip,
:update_monthly_payslip,
:invidual_payslip_pdf,
:create_monthly_payslip,
:payslip_approve,
:one_click_approve,
:one_click_approve_submit,
:department_payslip,
:update_employee_payslip,
:department_payslip_pdf,
:employee_individual_payslip_pdf,
:view_employee_payslip
]
has_permission_on [:payroll],
:to => [
:manage_payroll,
:profile_payroll_details,
:edit_payroll_details,
:view_payroll_details,
:activate_category,
:inactivate_category,
:update_dependent_fields]
end

role :employee_search do
has_permission_on [:employee],
:to => [
:search,
:view_all,
:search_ajax,
:profile,
:view_all,
:employees_list,
:advanced_search,
:hr
]
end

role :employee_timetable_access do
has_permission_on [:timetable], :to => [:employee_timetable,:update_employee_tt,:timetable_pdf]
# has_permission_on [:employee], :to => [:timetable,:timetable_pdf]
end

# admin privileges
role :admin do
includes :archived_exam_reports
has_permission_on [:user], :to => [:edit_privilege]
has_permission_on [:weekday], :to => [:index, :week, :create]
has_permission_on [:event],
:to => [
:index,
:event_group,
:select_course,
:course_event,
:remove_batch,
:select_employee_department,
:department_event,
:remove_department,
:show,
:confirm_event,
:cancel_event,
:edit_event
]
has_permission_on [:academic_year],
:to => [
:index,
:add_course,
:migrate_classes,
:migrate_students,
:list_students,
:update_courses,
:upcoming_exams ]
has_permission_on [:attendances],
:to => [
:index,
:show,
:new,
:create,
:edit,
:destroy,
:list_subject,
:update,
:subject_wise_register,
:daily_register
]
has_permission_on [:sms], :to => [:index, :settings, :update_general_sms_settings, :students, :list_students, :batches, :sms_all, :employees, :list_employees, :departments, :all, :show_sms_messages, :show_sms_logs]
has_permission_on [:sms_settings], :to => [:index, :update_general_sms_settings]
has_permission_on [:class_timings], :to => [:index, :edit, :destroy, :show, :new, :create, :update]
has_permission_on [:attendance_reports], :to => [:index, :subject, :mode, :show, :year, :report, :filter, :student_details,:report_pdf,:filter_report_pdf]
has_permission_on [:student_attendance], :to => [:index, :student, :month]
has_permission_on [:configuration], :to => [:index,:settings,:permissions, :add_weekly_holidays, :delete]
has_permission_on [:subjects], :to => [:index, :new, :create,:destroy,:edit,:update, :show]
has_permission_on [:courses],
:to => [
:index,
:manage_course,
:manage_batches,
:new,
:create,
:update_batch,
:edit,
:update,
:destroy,
:show,
:find_course,
:grouped_batches,
:create_batch_group,
:edit_batch_group,
:update_batch_group,
:delete_batch_group
]
has_permission_on [:batches],
:to => [
:index,
:new,
:create,
:edit,
:update,
:destroy,
:show,
:init_data,
:assign_tutor,
:update_employees,
:assign_employee,
:remove_employee,
:batches_ajax
]
has_permission_on [:batch_transfers],
:to => [
:index,
:show,
:transfer,
:graduation,
:subject_transfer,
:get_previous_batch_subjects,
:update_batch,
:assign_previous_batch_subject,
:assign_all_previous_batch_subjects,
:new_subject,
:create_subject
]
has_permission_on [:employee_attendance],
:to => [
:index,
:add_leave_types,
:edit_leave_types,
:delete_leave_types,
:register,
:update_attendance_form,
:report,
:update_attendance_report,
:emp_attendance,
:leaves,
:leave_application,
:leave_app,
:approve_remarks,
:deny_remarks,
:approve_leave,
:deny_leave,
:cancel,
:new_leave_applications,
:all_employee_new_leave_applications,
:all_leave_applications,
:individual_leave_applications,
:own_leave_application,
:cancel_application,
:employee_attendance_pdf,
:update_all_application_view,
:manual_reset,
:employee_leave_reset_all,
:leave_reset_settings,
:update_employee_leave_reset_all,
:employee_leave_reset_by_department,
:list_department_leave_reset,
:update_department_leave_reset,
:employee_leave_reset_by_employee,
:employee_search_ajax,
:employee_view_all,
:employees_list,
:employee_leave_details,
:employee_wise_leave_reset,
:leave_history,
:update_leave_history
]
has_permission_on [:employee_attendances],
:to => [
:index,
:show,
:new,
:create,
:edit,
:update,
:destroy
]
has_permission_on [:grading_levels],
:to => [
:index,
:show,
:edit,
:update,
:new,
:create,
:destroy

]
has_permission_on [:ranking_levels],
:to => [
:index,
:load_ranking_levels,
:create_ranking_level,
:edit_ranking_level,
:update_ranking_level,
:delete_ranking_level,
:ranking_level_cancel,
:change_priority
]
has_permission_on [:class_designations],
:to => [
:index,
:load_class_designations,
:create_class_designation,
:edit_class_designation,
:update_class_designation,
:delete_class_designation
]
has_permission_on [:exam],
:to => [
:index,
:update_exam_form,
:publish,
:grouping,
:exam_wise_report,
:list_exam_types,
:generated_report,
:generated_report_pdf,
:consolidated_exam_report,
:consolidated_exam_report_pdf,
:subject_wise_report,
:subject_rank,
:course_rank,
:batch_groups,
:student_course_rank,
:student_course_rank_pdf,
:student_school_rank,
:student_school_rank_pdf,
:attendance_rank,
:student_attendance_rank,
:student_attendance_rank_pdf,
:generate_reports,
:generate_previous_reports,
:select_inactive_batches,
:settings,
:report_center,
:gpa_cwa_reports,
:list_batch_groups,
:ranking_level_report,
:student_ranking_level_report,
:student_ranking_level_report_pdf,
:transcript,
:student_transcript,
:student_transcript_pdf,
:combined_report,
:load_levels,
:student_combined_report,
:student_combined_report_pdf,
:load_batch_students,
:select_mode,
:select_batch_group,
:select_type,
:select_report_type,
:batch_rank,
:student_batch_rank,
:student_batch_rank_pdf,
:student_subject_rank,
:student_subject_rank_pdf,
:list_subjects,
:list_batch_subjects,
:generated_report2,
:generated_report2_pdf,
:generated_report3,
:final_report_type,
:generated_report4,
:generated_report4_pdf,
:combined_grouped_exam_report_pdf,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:academic_report,
:previous_batch_exams,
:list_inactive_batches,
:list_inactive_exam_groups,
:previous_exam_marks,
:edit_previous_marks,
:update_previous_marks,
:create_exam,
:update_batch_ex_result,
:update_batch,
:graph_for_generated_report,
:graph_for_generated_report3,
:graph_for_previous_years_marks_overview,
:grouped_exam_report
]
has_permission_on [:scheduled_jobs],
:to => [
:index
]
has_permission_on [:exam_groups],
:to => [
:index,
:new,
:create,
:edit,
:update,
:destroy,
:show,
:initial_queries,
:set_exam_minimum_marks,
:set_exam_maximum_marks,
:set_exam_weightage,
:set_exam_group_name
]
has_permission_on [:exams],
:to => [
:index,
:show,
:new,
:create,
:edit,
:update,
:destroy,
:save_scores,
:query_data
]

# has_permission_on [:additional_exam],
# :to => [
# :index,
# :update_exam_form,
# :publish,
# :create_additional_exam,
# :update_batch
# ]

# has_permission_on [:additional_exam_groups],
# :to => [
# :index,
# :new,
# :create,
# :edit,
# :update,
# :destroy,
# :show,
# :initial_queries,
# :set_additional_exam_minimum_marks,
# :set_additional_exam_maximum_marks,
# :set_additional_exam_weightage,
# :set_additional_exam_group_name
# ]
# has_permission_on [:additional_exams],
# :to => [
# :index,
# :show,
# :new,
# :create,
# :edit,
# :update,
# :destroy,
# :save_additional_scores,
# :query_data
# ]

has_permission_on [:finance],
:to => [
:index,
:automatic_transactions,
:categories,
:donation,
:donation_receipt,
:expense_create,
:expense_edit,
:fee_collection,
:fee_submission,
:fees_received,
:fee_structure,
:fees_student_specific,
:income_create,
:income_edit,
:transactions,
:category_create,
:category_delete,
:category_edit,
:category_update,
:get_child_fee_element_form,
:get_new_fee_element_form,
:create_child_fee_element,
:create_new_fee_element,
:reset_fee_element,
:fee_collection_create,
:fee_collection_delete,
:fee_collection_edit,
:fee_collection_update,
:fee_structure_create,
:fee_structure_delete,
:fee_structure_edit,
:fee_structure_update,
:transaction_trigger_create,
:transaction_trigger_edit,
:transaction_trigger_update,
:transaction_trigger_delete,
:fees_student_search,
:search_logic,
:fees_received,
:fees_defaulters,
:fees_submission_index,
:fees_submission_batch,
:update_fees_collection_dates,
:load_fees_submission_batch,
:update_ajax,
:update_batches,
:update_fees_collection_dates_defaulters,
:fees_defaulters_students,
:monthly_report,
:update_monthly_report,
:year_report,
:update_year_report,
:approve_monthly_payslip,
:one_click_approve_submit,
:one_click_approve,
:employee_payslip_approve,
:employee_payslip_reject,
:employee_payslip_accept_form,
:employee_payslip_reject_form,
:payslip_index,
:view_monthly_payslip,
:view_monthly_payslip_search,
:update_monthly_payslip,:search_ajax,
:view_payslip_dept,
:update_dates,
:update_monthly_payslip_all,
:fee_structure_select_batch,
:fees_student_dates,
:fee_structure_batch,
:fees_structure_student_search,
:search_fees_structure,
:fees_structure_dates,
:fees_structure_result,
:salary_department,
:salary_employee,
:employee_payslip_monthly_report,
:direct_expenses,
:direct_income,
:donations_report,
:fees_report,
:batch_fees_report,
:salary_department_year,
:salary_employee_year,
:direct_expenses_year,
:direct_income_year,
:donations_report_year,
:fees_report_year,
:asset_liability,
:liability,
:create_liability,
:view_liability,
:each_liability_view,
:asset,
:create_asset,
:view_asset,
:each_asset_view,
:edit_liability,
:update_liability,
:delete_liability,
:edit_asset,
:update_asset,
:delete_asset,
:fee_collection_view,
:fee_collection_dates_batch,
:pay_fees_defaulters,
:fee_structure_fee_collection_date,
:fees_student_specific_dates,
:update_fees_specific,
:fees_index,
#new_fee-----------
:fees_create,
:master_fees,
:show_master_categories_list,
# :show_additional_fees_list,
:fees_particulars,
# :additional_fees,
# :additional_fees_create_form,
# :additional_fees_create,
# :additional_fees_view,
:add_particulars,
:fee_collection_batch_update,
:fees_submission_student,
:fees_submission_save,
:fee_particulars_update,
:student_or_student_category,
:fees_student_structure_search,
:fees_student_structure_search_logic,
:fee_structure_dates,
:fees_structure_for_student,
:master_fees_index,
:master_category_create,
:master_category_new,
:fees_particulars_new,
:fees_particulars_new2,
:fees_particulars_create,
:fees_particulars_create2,
:add_particulars_new,
:add_particulars_create,
:fee_discounts,
:fee_discount_new,
:load_discount_create_form,
:load_discount_batch,
:load_batch_fee_category,
:batch_wise_discount_create,
:category_wise_fee_discount_create,
:student_wise_fee_discount_create,
:update_master_fee_category_list,
:show_fee_discounts,
:edit_fee_discount,
:update_fee_discount,
:delete_fee_discount,
:fee_collection_new,
:collection_details_view,
:fee_collection_create,
:categories_new,
:categories_create,
:master_category_edit,
:master_category_update,
:master_category_delete,
:master_category_particulars,
:master_category_particulars_edit,
:master_category_particulars_update,
:master_category_particulars_delete,
# :additional_fees_list,
:additional_particulars,
:add_particulars_edit,
:add_particulars_update,
:add_particulars_delete,
# :additional_fees_edit,
# :additional_fees_update,
# :additional_fees_delete,
:month_date,
:compare_report,
:report_compare,
:graph_for_compare_monthly_report,
:update_fine_ajax,
:student_fee_receipt_pdf,
:update_student_fine_ajax,
:transaction_pdf,
:update_defaulters_fine_ajax,
:fee_defaulters_pdf,
:donation_receipt_pdf,
:donors,
:expense_list,
:expense_list_update,
:income_list,
:income_list_update,
:income_details,
:income_details_pdf,
:delete_transaction,
:partial_payment,
:donation_edit,
:donation_delete,
#pdf-------------
:pdf_fee_structure,

#graph-------------
:graph_for_update_monthly_report,

:view_employee_payslip,
:income_list_pdf,
:expense_list_pdf,
:asset_pdf,
:liability_pdf

]

has_permission_on [:xml], :to =>
[
:create_xml,
:index,
:settings,
:download
]

has_permission_on [:holiday], :to => [:index,:edit,:delete]
has_permission_on [:news],
:to => [
:index,
:add,
:add_comment,
:all,
:delete,
:delete_comment,
:comment_approved,
:edit,
:search_news_ajax,
:view ]
has_permission_on [:payroll],
:to => [
:index,
:add_category,
:edit_category,
:delete_category,
:activate_category,
:inactivate_category,
:manage_payroll,
:update_dependent_fields,
:edit_payroll_details ]
has_permission_on [:student],
:to => [
:academic_pdf,
:profile,
:admission1,
:admission2,
:admission3,
:add_guardian,
:edit,
:edit_guardian,
:guardians,
:del_guardian,
:list_students_by_course,
:show,
:view_all,
:index,
:academic_report,
:academic_report_all,
:change_to_former,
:delete,
:destroy,
:email,
:exam_report,
:update_student_result_for_examtype,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:remove,
:reports,
:search_ajax,
:student_annual_overview,
:subject_wise_report,
:graph_for_previous_years_marks_overview,
:graph_for_academic_report,
:graph_for_annual_academic_report,
:graph_for_student_annual_overview,
:graph_for_subject_wise_report_for_one_subject,
:graph_for_exam_report,
:category_update,
:category_edit,
:category_delete,
:categories,
:add_additional_details,
:edit_additional_details,
:delete_additional_details,
:admission4,
:advanced_search,
:list_batches,
:electives,
:assign_students,
:unassign_students,
:list_doa_year,
:doa_equal_to_update,
:doa_less_than_update,
:doa_greater_than_update,
:list_dob_year,:dob_equal_to_update,:dob_less_than_update,:dob_greater_than_update,
:advanced_search_pdf,
:previous_data,
:previous_subject,
:previous_data_edit,
:save_previous_subject,
:delete_previous_subject,
:profile_pdf,
:generate_tc_pdf,
:generate_all_tc_pdf,
:assign_all_students,
:unassign_all_students,
:edit_admission4,
:admission3_1,
:admission3_2,
:show_previous_details,
:fees,
:fee_details
]
has_permission_on [:archived_student],
:to => [
:profile,
:reports,
:guardians,
:delete,
:destroy,
:generate_tc_pdf,
:consolidated_exam_report,
:consolidated_exam_report_pdf,
:academic_report,
:student_report,
:generated_report,
:generated_report_pdf,
:generated_report3,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:generated_report4,
:generated_report4_pdf,
:graph_for_generated_report,
:graph_for_generated_report3,
:graph_for_previous_years_marks_overview
]
has_permission_on [:subject],
:to => [
:index,
:create,
:delete,
:edit,
:list_subjects ]
has_permission_on [:timetable],
:to => [:index,
:new_timetable,
:update_timetable,
:view,
:edit_master,
:teachers_timetable,
:update_teacher_tt,
:update_timetable_view,
:destroy,
:employee_timetable,
:update_employee_tt,
:student_view,
:update_student_tt,
:weekdays,
:timetable,
:timetable_pdf,
:work_allotment
]
has_permission_on [:timetable_entries],
:to => [
:new,
:select_batch,
:new_entry,
:update_employees,
:delete_employee2,
:update_multiple_timetable_entries2,
:tt_entry_update2,
:tt_entry_noupdate2
]
has_permission_on [:weekdays],
:to => [
:index,
:new
]
has_permission_on [:employee],
:to => [
:index,
:add_category,
:edit_category,
:delete_category,
:add_position,
:edit_position,
:delete_position,
:add_department,
:edit_department,
:delete_department,
:add_grade,
:edit_grade,
:delete_grade,
:admission1,
:update_positions,
:edit1,
:edit_personal,
:admission2,
:edit2,
:edit_contact,
:admission3,
:edit3,
:admission4,
:change_reporting_manager,
:reporting_manager_search,
:update_reporting_manager_name,
:edit4,
:search,
:search_ajax,
:select_reporting_manager,
:profile,
:profile_general,
:profile_personal,
:profile_address,
:profile_contact,
:profile_bank_details,
:profile_payroll_details,
:view_all,
:show,
:add_payslip_category,
:create_payslip_category,
:remove_new_paylist_category,
:create_monthly_payslip,
:view_payslip,
:update_monthly_payslip,
:delete_payslip,
:view_attendance,
:subject_assignment,
:update_subjects,
:select_department,
:update_employees,
:assign_employee,
:remove_employee,
:hr,
:payslip,
:select_department_employee,
:rejected_payslip,
:update_rejected_employee_list,
:view_rejected_payslip,
:edit_rejected_payslip,
:update_rejected_payslip,
:update_employee_select_list,
:payslip_date_select,
:one_click_payslip_generation,
:payslip_revert_date_select,
:one_click_payslip_revert,
:leave_management,
:all_employee_leave_applications,
:update_employees_select,
:leave_list,
:reminder,
:create_reminder,
:to_employees,
:update_recipient_list,
:sent_reminder,
:view_sent_reminder,
:delete_reminder,
:view_reminder,
:mark_unread,
:pull_reminder_form,
:send_reminder,
:individual_payslip_pdf,
:settings,
:employee_management,
:employee_attendance,
:employees_list,
:add_bank_details,
:edit_bank_details,
:delete_bank_details,
:admission3,
:admission3_1,
:admission3_2,
:add_additional_details,
:edit_additional_details,
:delete_additional_details,
:profile_additional_details,
:edit3_1,
:advanced_search,
:list_doj_year,
:doj_equal_to_update,
:doj_less_than_update,
:doj_greater_than_update,
:list_dob_year,:dob_equal_to_update,:dob_less_than_update,:dob_greater_than_update,
:remove,:change_to_former,:delete,:remove_subordinate_employee,
:edit_privilege,
:advanced_search_pdf,
:profile_pdf,
:department_payslip,
:update_employee_payslip,
:department_payslip_pdf,
:view_rep_manager,
:payslip_approve,
:one_click_approve,
:one_click_approve_submit,
:employee_individual_payslip_pdf,
:employee_leave_count_edit,
:employee_leave_count_update,
:view_employee_payslip

]
has_permission_on [:calendar], :to => [:event_delete]

has_permission_on [:descriptive_indicators],
:to=>[
:index,
:new,
:create,
:show,
:edit,
:update,
:destroy,
:reorder,
:destroy_indicator
]
has_permission_on [:fa_criterias],
:to=>[
:index,
:show
]
has_permission_on [:fa_groups],
:to=>[
:index,
:new,
:create,
:edit,
:update,
:destroy,
:show,
:assign_fa_groups,
:select_subjects,
:select_fa_groups,
:update_subject_fa_groups,
:new_fa_criteria,
:create_fa_criteria,
:edit_fa_criteria,
:update_fa_criteria,
:destroy_fa_criteria,
:reorder

]
has_permission_on [:observation_groups],
:to=>[
:index,
:new,
:show,
:create,
:edit,
:update,
:destroy,
:new_observation,
:edit_observation,
:create_observation,
:edit_osbervation,
:update_observation,
:destroy_observation,
:assign_courses,
:select_observation_groups,
:update_course_obs_groups,
:reorder
]
has_permission_on [:observations],
:to=>[
:show
]
has_permission_on [:assessment_scores],
:to=>[
:exam_fa_groups,
:fa_scores,
:observation_groups,
:observation_scores
]
has_permission_on [:cce_exam_categories],
:to=>[
:index,
:new,
:show,
:create,
:edit,
:update,
:destroy
]
has_permission_on [:cce_grade_sets],
:to=>[
:index,
:new,
:create,
:edit,
:update,
:destroy,
:show,
:index,
:new_grade,
:create_grade,
:edit_grade,
:update_grade,
:destroy_grade
]
has_permission_on [:cce_reports],
:to=>[
:index,
:create_reports,
:student_wise_report,
:student_report_pdf,
:student_transcript,
:student_report
]
has_permission_on [:cce_settings],
:to=>[
:index,
:basic,
:scholastic,
:co_scholastic
]
has_permission_on [:cce_weightages],
:to=>[
:index,
:new,
:create,
:show,
:edit,
:update,
:destroy,
:assign_courses,
:assign_weightages,
:select_weightages,
:update_course_weightages
]
end

# student- privileges
role :student do
has_permission_on [:course], :to => [:view]
has_permission_on [:exam], :to => [:generated_report, :generated_report4_pdf, :graph_for_generated_report, :academic_report, :previous_years_marks_overview,:previous_years_marks_overview_pdf, :graph_for_previous_years_marks_overview, :generated_report3, :graph_for_generated_report3 ,:generated_report4,:student_transcript,:student_transcript_pdf]
has_permission_on [:student],
:to => [
:exam_report,
:show,
:academic_pdf,
:profile,
:guardians,
:list_students_by_course,
:academic_report,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:reports,
:student_annual_overview,
:subject_wise_report,
:graph_for_previous_years_marks_overview,
:graph_for_student_annual_overview,
:graph_for_subject_wise_report_for_one_subject,
:graph_for_exam_report,
:graph_for_academic_report,
:show_previous_details,
:fees,
:fee_details
]
has_permission_on [:news],
:to => [
:index,
:all,
:search_news_ajax,
:view,
:add_comment,
:delete_comment]
has_permission_on [:subject], :to => [:index,:list_subjects]
has_permission_on [:timetable], :to => [:student_view, :update_student_tt]
has_permission_on [:attendance], :to => [:student_report]
has_permission_on [:student_attendance], :to => [:index, :student, :month]
has_permission_on [:finance], :to => [:student_fees_structure]
has_permission_on [:cce_reports], :to => [:student_transcript,:student_report_pdf]
end

role :parent do
has_permission_on [:course], :to => [:view]
has_permission_on [:exam], :to => [:generated_report, :generated_report4_pdf, :combined_grouped_exam_report_pdf, :graph_for_generated_report, :academic_report, :previous_years_marks_overview,:previous_years_marks_overview_pdf, :graph_for_previous_years_marks_overview, :generated_report3, :graph_for_generated_report3 ,:generated_report4,:student_transcript,:student_transcript_pdf]
has_permission_on [:student],
:to => [
:exam_report,
:show,
:academic_pdf,
:profile,
:guardians,
:list_students_by_course,
:academic_report,
:previous_years_marks_overview,
:previous_years_marks_overview_pdf,
:reports,
:student_annual_overview,
:subject_wise_report,
:graph_for_previous_years_marks_overview,
:graph_for_student_annual_overview,
:graph_for_subject_wise_report_for_one_subject,
:graph_for_exam_report,
:graph_for_academic_report,
:show_previous_details,
:fees,
:fee_details
]
has_permission_on [:news],
:to => [
:index,
:all,
:search_news_ajax,
:view,
:add_comment,
:delete_comment]
has_permission_on [:subject], :to => [:index,:list_subjects]
has_permission_on [:timetable], :to => [:student_view,:update_timetable_view]
has_permission_on [:attendance], :to => [:student_report]
has_permission_on [:student_attendance], :to => [:index, :student, :month]
has_permission_on [:finance], :to => [:student_fees_structure]
end

# employee -privileges
role :employee do
has_permission_on [:employee],
:to => [
:profile,
:profile_general,
:profile_personal,
:profile_address,
:profile_contact,
:profile_bank_details,
:profile_payroll_details,
:profile_additional_details,
:reminder,
:sent_reminder,
:create_reminder,
:to_employees,
:view_sent_reminder,
:update_recipient_list,
:delete_reminder_by_sender,
:delete_reminder_by_recipient,
:view_reminder,
:mark_unread,
:view_payslip,
:view_attendance,
:update_monthly_payslip,
:create_reminder_1,
:select_employee_department,
:create_reminder_form,
:select_student_course,
:to_students,
:all_employee_leave_applications,
:individual_payslip_pdf,
:show,
:profile_pdf
]
has_permission_on [:timetable],:to => [:employee_timetable,:update_employee_tt]
has_permission_on [:news],
:to => [
:index,
:all,
:search_news_ajax,
:view,
:add_comment,
:delete_comment]
has_permission_on [:employee_attendance],
:to => [
:index,
:leaves,
:leave_application,
:own_leave_application,
:cancel_application,
:individual_leave_applications,
:all_leave_applications,
:update_all_application_view,
:new_leave_applications,
:approve_remarks,
:approve_leave,
:deny_remarks,
:cancel,
:all_employee_new_leave_applications,
:employee_attendance_pdf,
:deny_leave,
:leave_history,
:update_leave_history
]
has_permissi
Yes, like for news you can comment from role :manage_news do to end
Surajit,

what do mean by that.?
im confusing with it...

can u explain more clearly...

if can step by step

thanks
sorry im still confusing with it..

any1 pls help me...

can give some example...

step by step pls:~
Guys, help me pls...