Release Support > Requests

Roundcube hide headers from user

(1/1)

pikington:
Hi guys ,

I hope you're all well, I was wondering if it was possible to remove the "headers" button from the users profile?

I don't want them to have the ability to view the headers on the emails which they receive and it have to be administrators to view them

Cheers

JohnDoh:
I think you have two choices
1) create a custom skin/extend an existing one and leave they button out of the template
2) use the `render_page` hook to modify the HTML before its sent to the client with something like (for the elastic skin):

--- Code: ---if ($args['template'] == 'message') {
  $args['content'] = preg_replace('/<a href="#all-headers" class="headers-all" onclick="return UI.headers_dialog\(\)">(.+?)<\/a>/', '', $args['content']);
}
return $args;

--- End code ---
The plugin approach would give you the option to choose which users the button appears for.

Navigation

[0] Message Index

Go to full version