From 58d5a97b7526099d6b6ce40601d501b98194e9d5 Mon Sep 17 00:00:00 2001
From: h3rj4n <h3rj4n@464618.no-reply.drupal.org>
Date: Wed, 20 Jun 2012 09:29:53 +0200
Subject: [PATCH] Issue #1648294: Added check if enabled

---
 config_perms.module |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/config_perms.module b/config_perms.module
index 0ad75cf..261bd8a 100644
--- a/config_perms.module
+++ b/config_perms.module
@@ -109,7 +109,7 @@ function config_perms_menu() {
 function config_perms_menu_alter(&$items) {
   foreach (config_perms_perms() as $perm) {
     foreach ($perm->path as $path) {
-      if($items[$path]) {
+      if($items[$path] && $perm->status == 1) {
         $items[$path]['access callback'] = 'config_perms_access_callback';
         $items[$path]['access arguments'] = array($perm);
       }
-- 
1.7.5.4

