Permalink
Browse files

added access callback "node_access"

  • Loading branch information...
1 parent 841cdba commit 1777ce042d5dfd3c0a621c423960db645bc08fde @mrhanlon mrhanlon committed Apr 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 modules/fileversion/fileversion.module
@@ -19,12 +19,14 @@ function fileversion_menu() {
'title' => 'Delete all versions',
'page callback' => 'drupal_get_form',
'page arguments' => array('fileversion_delete_all_versions_confirm',2,3),
+ 'access callback' => 'node_access',
'access arguments' => array('delete',2)
),
'fileversion/deleteversion/%node/%' => array(
'title' => 'Delete this version',
'page callback' => 'drupal_get_form',
'page arguments' => array('fileversion_delete_this_version_confirm',2,3),
+ 'access callback' => 'node_access',
'access arguments' => array('delete',2)
),
);

0 comments on commit 1777ce0

Please sign in to comment.