Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In a Data Export, I set the Permission for only certain roles to export the table data, like:
But the Export button is visible for all the user roles, even if they don't have rights/access to export. However after clicking the export, they are redirected to Access Denied page, but I guess its better to hide the button instead of redirecting to Access Denied page.
if it was just a link, In *.tpl.php file, I could have done something like:
<?php if (in_array('myRole', $user->roles)): ?>
// The export button
<?php endif; ?>
but I am not sure how to set for this module.
If there was a permission settings for the module then it'd solve this issue.
Comment | File | Size | Author |
---|---|---|---|
export.jpg | 19.05 KB | Anonymous (not verified) |
Comments
Comment #1
prdctvtxt CreditAttribution: prdctvtxt commentedhttps://drupal.org/node/1985960
Comment #2
nerdoc CreditAttribution: nerdoc commentedIsn't this an exact duplicate? @prdctvtxt already mentioned #1985960 - You could close this issue here, don't you?
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous as a volunteer commentedIndeed #1985960 fixes the issue.
I'm closing this now.