Hi,
I want to limit the access of exporting for some of the Users which for example does not have space export access,
I know that I can disable it from plugin setting or I can hide it by writing java-script in header of the page, but in the second method, I need to limit it just for some user, for example leaders needs to have access for exporting but some others not,
how can I add scripts in header to check if the user has space export permission can see the export to PDF item.
thank you so much.
Hello,
I added the below codes in Space layout and it works.
#if ($permissionHelper.canExport($authenticatedUser, $action.page))
<script type="text/javascript">
AJS.$('#action-export-pdf-link').hide();
</script>
#else
#end
Hey There,
We actually have an article for this. Please refer to it below.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @kennyngkk,
thank you for your answer, actually solution in your link will disable Export for all the users, I need to write a script to check if someone has xxx permission see the export item and for who does not have xxx permission hide the item, we need exporting for some users and dont want to disable it, just want to hide it based on space permissions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.