Skip to content

Commit

Permalink
disabled *edit page permission* mollom spam bypass, http://drupal.org…
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed May 18, 2012
1 parent 4337178 commit f379fe6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions html/modules/plots/plots.module
Expand Up @@ -16,3 +16,17 @@ function plots_form_alter(&$form, $form_state, $form_id) {
}
}

/**
* Mollom permission bypass
*/

function plots_mollom_form_info_alter(&$form_info, $form_id) {
if ($form_info['module'] == 'node') {
foreach ($form_info['bypass access'] as $key => $perm) {
if (strpos($perm, 'edit any ') === 0 || strpos($perm, 'delete any ') === 0) {
unset($form_info['bypass access'][$key]);
}
}
}
}

0 comments on commit f379fe6

Please sign in to comment.