Skip to content

Commit 01f1844

Browse files
akhanfirexo-swf
authored andcommitted
fix: restricted page need to be displayed if not allowed to display task - MEED-10264 - #4060 (#4093)
Before this change, if no longer belongs to an accessible project, task url displays blank content. After this change, the restricted page displays correctly, and its URL should be /restricted-project.
1 parent 985e0f8 commit 01f1844

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

webapps/plf-sites-extension/src/main/resources/locale/navigation/portal/global_en.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ portal.global.external-registration=Guest registration
6565
portal.global.login=Login
6666
portal.global.forgot-password=Forgot Password
6767
portal.global.on-boarding=Create a password
68+
portal.global.restricted-projec=Restricted Project

webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/global/navigation.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@
8080
<visibility>SYSTEM</visibility>
8181
<page-reference>portal::global::tasks</page-reference>
8282
</node>
83+
84+
<node>
85+
<name>restricted-project</name>
86+
<label>#{portal.global.restricted-project}</label>
87+
<visibility>SYSTEM</visibility>
88+
<page-reference>portal::global::restricted-project</page-reference>
89+
</node>
8390

8491
<node>
8592
<name>connexions</name>

webapps/plf-sites-extension/src/main/webapp/WEB-INF/conf/sites/portal/global/pages.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,26 @@
161161
</section-columns>
162162
</container>
163163
</page>
164+
165+
<page>
166+
<name>restricted-project</name>
167+
<title>restricted-project</title>
168+
<access-permissions>*:/platform/users;*:/platform/externals</access-permissions>
169+
<edit-permission>manager:/platform/administrators</edit-permission>
170+
<container template="system:/groovy/portal/webui/container/UIPageLayout.gtmpl">
171+
<section-columns>
172+
<column col-span="12">
173+
<portlet-application>
174+
<portlet>
175+
<application-ref>task-management</application-ref>
176+
<portlet-ref>RestrictedProject</portlet-ref>
177+
</portlet>
178+
<title>Restricted Project</title>
179+
</portlet-application>
180+
</column>
181+
</section-columns>
182+
</container>
183+
</page>
164184

165185
<page>
166186
<name>settings</name>

0 commit comments

Comments
 (0)