diff --git user_badges.module user_badges.module index e54b167..3bb1732 100644 --- user_badges.module +++ user_badges.module @@ -61,7 +61,11 @@ function user_badges_help($path, $arg) { * Implements hook_perm(). */ function user_badges_perm() { - return array('manage badges', 'change badge assignments'); + return array( + 'manage badges', + 'change badge assignments', + 'show badges in user profile' + ); } /** @@ -147,7 +151,7 @@ function user_badges_menu() { 'title' => 'Badges', 'page callback' => 'user_badges_userweight_page', 'page arguments' => array(1), - 'access callback' => TRUE, + 'access arguments' => array('show badges in user profile'), 'type' => MENU_LOCAL_TASK, 'weight' => 4, ); @@ -156,7 +160,7 @@ function user_badges_menu() { 'title' => 'List', 'page callback' => 'user_badges_userweight_page', 'page arguments' => array(1), - 'access callback' => TRUE, + 'access arguments' => array('show badges in user profile'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, );