Commit 6d1576f2 authored by metzlerd's avatar metzlerd
Browse files

Correct email merge permissions.

parent 1fe7cdc8
......@@ -169,6 +169,11 @@ function forena_my_reports_block() {
* @param integer $count Number of documents to send.
function forena_confirm_email($formid, &$form_state, $docs, $count, $prompt_subject, $prompt_body) {
// Make sure user has permission for email merge.
if (!user_access('perform email merge')) {
// Save arguments away for rebuild
if (!isset($form_state['storage']['args'])) {
$form_state['storage']['args'] = array(
......@@ -216,8 +216,7 @@
<th>Peform email merge</th>
<td>Even though this is one of the available permissions, it doesn't seem to be used anywhere within Forena. Feel free
to use it to implement {datablocks_security} for any of your (custom) reports.</td>
<td>Allows users to use the <strong>email</strong> document type to send email form letters using Forena.</td>
<th>Access xml from data blocks directly</th>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment