In a Data Export, I set the Permission for only certain roles to export the table data, like:

Export views permission set

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.

CommentFileSizeAuthor
export.jpg19.05 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

prdctvtxt’s picture

nerdoc’s picture

Isn't this an exact duplicate? @prdctvtxt already mentioned #1985960 - You could close this issue here, don't you?

Anonymous’s picture

Status: Active » Closed (duplicate)

Indeed #1985960 fixes the issue.

I'm closing this now.