콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1830 화면

In the Website module, I need to display links only if the user does not belong to the helpdesk administrator group. How can I achieve this?


Example:







아바타
취소
베스트 답변

Hi 

To display links only if the user does not belong to the helpdesk administrator group in the Website module, you can use the following code:


```


<t t-if="not request.env.user.has_group('helpdesk.helpdesk_admin_group')">


    <!-- Your link code here -->


</t>


```


This code uses a template condition (`<t t-if>`) to check if the current user does not have the helpdesk administrator group (`'helpdesk.helpdesk_admin_group'`). If the user does not belong to the group, the links inside the `<t>` block will be displayed.


Please note that you need to replace `'helpdesk.helpdesk_admin_group'` with the actual technical name of your helpdesk administrator group.

Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
1
3월 23
3548
3
8월 25
2613
1
5월 25
2646
1
4월 25
3637
1
4월 25
4492