S'ha produït un error mentre es processava la plantilla.
Java method "com.sun.proxy.$Proxy133.hasUserUserGroup(long, long)" threw an exception when invoked on com.sun.proxy.$Proxy133 object "com.liferay.portal.service.impl.UserGroupLocalServiceImpl@1500c8a3"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign esEditor = UserGroup.hasUserU... [in template "20115#20151#154048" at line 12, column 9] ----
1<#assign UserGroup = serviceLocator.findService("com.liferay.portal.kernel.service.UserGroupLocalService")>
2
3${content.getData()}
4
5<a id="topButton" style="display:none;"></a>
6
7
8<#if user != 'Guest'>
9 <#assign roles = user.getRoles()
10 showcontrolmenu = true
11 />
12 <#assign esEditor = UserGroup.hasUserUserGroup(user.getUserId(), 1373954) />
13 <#list roles as role>
14 <#if role.getName() == "Administrator" || esEditor>
15 <#assign showcontrolmenu = false />
16 <#break>
17 </#if>
18 </#list>
19 <#if showcontrolmenu >
20 <style>
21 .controls-visible .portlet-topper-toolbar {
22 display: none;
23 }
24 </style>
25 </#if>
26</#if>
27
28<script>
29 $(document).ready(function(){
30 if($("#enlace-ancla").val() !== undefined){
31 if(screen.width < 767){
32 $('html,body').animate({scrollTop: $("#enlace-ancla").offset().top - 75}, 0);
33 }else{
34 $('html,body').animate({scrollTop: $("#enlace-ancla").offset().top}, 0);
35 }
36 }
37 });
38
39
40 //if(typeof noURL === "undefined" || typeof noURL === "string" ){
41 if(!window.location.href.includes("uid=")){
42 var urlList = [];
43 if(localStorage && localStorage.urlList){
44 var urlList = JSON.parse(localStorage.urlList) ;
45
46 }
47
48
49
50 if(urlList.length === 20){
51 urlList.shift();
52 urlList.push(themeDisplay.getLayoutId());
53 }else{
54 urlList.push(themeDisplay.getLayoutId());
55 }
56
57 localStorage.setItem("urlList", JSON.stringify(urlList));
58
59 }
60
61 var btn = $('#topButton');
62
63 $(window).scroll(function() {
64 if ($(window).scrollTop() > 300 && screen.width < 767) {
65 btn.show();
66 } else {
67 btn.hide();
68 }
69 });
70
71 btn.on('click', function(e) {
72 e.preventDefault();
73 if($("#enlace-ancla").val() !== undefined){
74 $('html,body').animate({scrollTop: $("#enlace-ancla").offset().top - 75}, '300');
75 }else{
76 $('html, body').animate({scrollTop:0}, '300');
77 }
78 });
79
80</script>