| 
					
				 | 
			
			
				@@ -12,7 +12,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @package QBF 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-// $Id: qbf.module,v 1.9.2.7 2008-10-13 13:43:18 marand Exp $ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// $Id: qbf.module,v 1.9.2.8 2008-10-15 12:55:00 marand Exp $ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * Saved error reporting level. 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -275,6 +275,7 @@ function _qbf_transform_element($key, $element) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function qbf_perm() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $ret = array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    QBF_PERM_ADMIN, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     QBF_PERM_QUERY, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -560,11 +561,12 @@ function qbf_menu($may_cache) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   $items = array(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if ($may_cache) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $admin_access = user_access(QBF_PERM_ADMIN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     $items[] = array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       'path'               => QBF_PATH_SETTINGS, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       'title'              => t('Query-By-Form'), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      'access'             => user_access(QBF_PERM_ADMIN), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      'access'             => $admin_access, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       'callback'           => 'drupal_get_form', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       'callback arguments' => 'qbf_admin_settings', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       'type'               => MENU_NORMAL_ITEM, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -576,10 +578,10 @@ function qbf_menu($may_cache) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       $queror_access = user_access(QBF_PERM_QUERY); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       $items[] = array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'path'     => QBF_PATH_MAIN .'/'. $qid .'/delete', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'type'     => MENU_CALLBACK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'access'   => $queror_access, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        'callback' => '_qbf_query_delete', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'path'               => QBF_PATH_MAIN .'/'. $qid .'/delete', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'type'               => MENU_CALLBACK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'access'             => $queror_access, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        'callback'           => '_qbf_query_delete', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         'callback arguments' => array($qid), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 |