Index: /mods/wpsg_mod_kundenverwaltung.class.php
===================================================================
--- /mods/wpsg_mod_kundenverwaltung.class.php	(revision 7384)
+++ /mods/wpsg_mod_kundenverwaltung.class.php	(revision 7385)
@@ -30,8 +30,23 @@
 		public function init()
 		{
-			
-			$role_object = get_role('administrator');
-			$role_object->add_cap('wpsg_customer');
-						
+		    
+		    $role_object = get_role('administrator');
+		    $role_object->add_cap('wpsg_customer');
+		    
+		    if (is_admin() && $this->shop->get_option('wpsg_wpsg_kundenverwaltung_cappreset') === false) {
+		        
+		        $arRoles = get_option($wpdb->prefix."user_roles");
+		        
+		        if (!isset($arRoles['administrator']['capabilities']['wpsg_kundenverwaltung'])) {
+		            
+		            $role_object = get_role('administrator');
+		            $role_object->add_cap('wpsg_kundenverwaltung');
+		            
+		            $this->shop->update_option('wpsg_wpsg_kundenverwaltung_cappreset', '1');
+		            
+		        }
+		        
+		    }
+		    
 		} // public function init()
 		
