Commit 8bad2b43 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette

Restricted menu options based on user auth

Restricted menu options based on user authority. Now it is only shown the options that user
may access. Also, the "change password" option was removed because it is not needed anymore.
Signed-off-by: Bruno Nocera Zanette's avatarBruno Nocera Zanette <brunonzanette@gmail.com>
parent a5cbd5c7
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<div xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:menu="urn:jsptagdir:/WEB-INF/tags/menu" id="menu" version="2.0">
<div xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:menu="urn:jsptagdir:/WEB-INF/tags/menu"
xmlns:sec="http://www.springframework.org/security/tags"
id="menu" version="2.0">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<jsp:output omit-xml-declaration="yes"/>
<menu:menu id="_menu" z="user-managed">
<sec:authorize access="hasAnyRole('Aluno')">
<menu:category id="c_registration" z="4zf7yvK7ho0iT0xmOM9TE/tFNtY=">
<menu:item id="i_registration_list" messageCode="global_menu_statement" url="/registrations/registrationsstatement" z="user-managed"/>
<menu:item id="i_registration_list" messageCode="global_menu_statement_acceptance" url="/registrations/acceptancestatement" z="user-managed"/>
<menu:item id="i_registration_list" messageCode="global_menu_registration_overview" url="/registrations/regoverviewchoice" z="user-managed"/>
</menu:category>
<menu:category id="c_transcript" z="a8v3h7EFS5CVeUqTWiTRDpYXXJg=">
<menu:item id="i_transcript_list" messageCode="global_menu_history" url="/transcripts/transcriptshistory" z="user-managed"/>
</menu:category>
<menu:category id="c_studentgrant" z="ekB+LoI15aV+Inz9R2XIzu6kQxY=">
<menu:item id="i_studentgrant_list" messageCode="global_menu_statement_student_grant" url="/studentgrants/statementgrant" z="user-managed"/>
</menu:category>
</sec:authorize>
<sec:authorize access="hasAnyRole('Professor')">
<menu:category id="c_professor" z="gFP/T2n5suI6k4wCJylC2vvnT0s=">
<menu:item id="i_professor_list" messageCode="global_menu_list" url="/professors" z="user-managed"/>
<menu:item id="i_professor_list" messageCode="global_menu_statement_advisees" url="/professors/statementadvisees" z="user-managed"/>
<menu:item id="i_professor_list" messageCode="global_menu_statement_advisees_concluded" url="/professors/statementadviseesconcluded" z="user-managed"/>
<menu:item id="i_professor_list" messageCode="global_menu_statement_committees" url="/professors/statementcommittees" z="user-managed"/>
<menu:item id="i_professor_list" messageCode="global_menu_statement_courses" url="/professors/statementcourses" z="user-managed"/>
</menu:category>
<menu:category id="c_registration" z="4zf7yvK7ho0iT0xmOM9TE/tFNtY=">
<menu:item id="i_registration_list" messageCode="global_menu_list" url="/registrations" z="user-managed"/>
<menu:item id="i_student_list_registration" messageCode="global_menu_list_status" url="/registrations/registrationspercourse" z="user-managed"/>
<menu:item id="i_registration_list" messageCode="global_menu_registration_overview" url="/registrations/regoverviewchoice" z="user-managed"/>
</menu:category>
<menu:category id="c_transcript" z="a8v3h7EFS5CVeUqTWiTRDpYXXJg=">
<menu:item id="i_transcript_list" messageCode="global_menu_statement_disciplinas" url="/transcripts/transcriptsstatement" z="user-managed"/>
<menu:item id="i_transcript_list" messageCode="global_menu_history" url="/transcripts/transcriptshistory" z="user-managed"/>
<menu:item id="i_transcript_section" messageCode="global_menu_transcript_section" url="/sectionposes/sectionsselectchoice" z="user-managed"/>
</menu:category>
<menu:category id="c_studentgrant" z="ekB+LoI15aV+Inz9R2XIzu6kQxY=">
<menu:item id="i_student_list_grant" messageCode="global_menu_list" url="/studentgrants/grantsperkind" z="user-managed"/>
</menu:category>
<menu:category id="c_sectionpos" z="WKmPblrzTzGlangNWbD52iLpcms=">
<menu:item id="i_sectionpos_list" messageCode="global_menu_list" url="/sectionposes" z="user-managed"/>
</menu:category>
<menu:category id="c_course" z="xwPFa1gir7x2AC89oGWk0WgKTE0=">
<menu:item id="i_course_list" messageCode="global_menu_list" url="/courses" z="user-managed"/>
</menu:category>
<menu:category id="c_services" z="usermanaged">
<menu:item id="i_search_meeting_minutes" messageCode="global_menu_search_meeting_minutes" url="/searchMeetingMinutes" z="user-managed"/>
</menu:category>
</sec:authorize>
<sec:authorize access="hasAnyRole('Administrador', 'Funcionario')">
<!-- <menu:category id="c_subscription" z="gFP/T2n5suI6k4wCJylC2vvnT0s=">
<menu:item id="i_subscription_new" messageCode="global_menu_new" url="/subscriptions?form" z="user-managed"/>
<menu:item id="i_subscription_list" messageCode="global_menu_list" url="/subscriptions" z="user-managed"/>
......@@ -115,8 +166,9 @@
<menu:item id="i_search_meeting_minutes" messageCode="global_menu_search_meeting_minutes" url="/searchMeetingMinutes" z="user-managed"/>
<menu:item id="i_configuration_list" messageCode="global_menu_load_meeting_minutes" url="/configurations/upload" z="user-managed"/>
<menu:item id="i_configuration_list" messageCode="global_menu_alerts" url="/configurations/alerts" z="user-managed"/>
<menu:item id="i_configuration_list" messageCode="change_password" url="/people/changepassword" z="user-managed"/>
<!-- <menu:item id="i_configuration_list" messageCode="change_password" url="/people/changepassword" z="user-managed"/> -->
</menu:category>
</menu:menu>
</sec:authorize>
</menu:menu>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment