type."-bright\">\n";
+		echo "type->getScope()."-bright\" border=0 width=\"100%\" style=\"border-collapse: collapse;\">\n";
+		if (checkIfWriteAccessIsAllowed($this->type->getId())) {
+			echo "type->getScope() . "-bright\">| \n";
 			$this->printCommonControls($tabindex);
 			echo " |  \n";
 		}
-		echo "type."-bright\" valign=\"top\">| ";
+		echo " |  type->getScope() . "-bright\" valign=\"top\">";
 		// print title bar
 		echo '';
 		echo ' ';
@@ -1021,10 +1018,10 @@ class accountContainer {
 			// RDN selection
 			$group->addElement(new htmlOutputText(_('RDN identifier')));
 			$group->addElement(new htmlSpacer('2px', null));
-			$rdnlist = getRDNAttributes($this->type);
+			$rdnlist = getRDNAttributes($this->type->getId());
 			$group->addElement(new htmlSelect('accountContainerRDN', $rdnlist, array($this->rdn)));
 			$group->addElement(new htmlHelpLink('301'));
-			parseHtml(null, $group, array(), true, $tabindex, $this->type);
+			parseHtml(null, $group, array(), true, $tabindex, $this->type->getScope());
 		echo '';
 		echo ' 
 ';
 		if ($this->titleBarSubtitle != null) {
@@ -1044,7 +1041,7 @@ class accountContainer {
 			// display html-code from modules
 			$return = call_user_func(array($this->module[$this->order[$this->current_page]], 'display_html_'.$this->subpage));
 			$y = 5000;
-			parseHtml($this->order[$this->current_page], $return, array(), false, $y, $this->type);
+			parseHtml($this->order[$this->current_page], $return, array(), false, $y, $this->type->getScope());
 			echo "  \n";
 			echo ' | ';
 			echo ' ';
@@ -1114,9 +1111,9 @@ class accountContainer {
 					if (!(strpos($buttonImage, 'http') === 0) && !(strpos($buttonImage, '/') === 0)) {
 						$buttonImage = '../../graphics/' . $buttonImage;
 					}
-					$moduleContainer->addElement(new htmlImage($buttonImage, null, null, getModuleAlias($name, $this->type)));
+					$moduleContainer->addElement(new htmlImage($buttonImage, null, null, getModuleAlias($name, $this->type->getScope())));
 				}
-				$moduleContainer->addElement(new htmlTableExtendedInputCheckbox('password_cb_' . $name, true, getModuleAlias($name, $this->type), null, false));
+				$moduleContainer->addElement(new htmlTableExtendedInputCheckbox('password_cb_' . $name, true, getModuleAlias($name, $this->type->getScope()), null, false));
 				$moduleContainer->addElement(new htmlSpacer('10px', null));
 			}
 		}
@@ -1125,7 +1122,7 @@ class accountContainer {
 		// generate HTML
 		$tabindex = 2000;
 		if ($printContainer) {
-			parseHtml(null, $container, array(), false, $tabindex, $this->type);
+			parseHtml(null, $container, array(), false, $tabindex, $this->type->getScope());
 		}
 		echo "\n";
 	}
@@ -1260,7 +1257,7 @@ class accountContainer {
 		$rightGroup = new htmlGroup();
 		$rightGroup->alignment = htmlElement::ALIGN_RIGHT;
 		// profile selection
-		$profilelist = getAccountProfiles($this->type);
+		$profilelist = getAccountProfiles($this->type->getId());
 		if (sizeof($profilelist) > 0) {
 			$rightGroup->addElement(new htmlSelect('accountContainerSelectLoadProfile', $profilelist, array($this->lastLoadedProfile)));
 			$profileButton = new htmlButton('accountContainerLoadProfile', _('Load profile'));
@@ -1275,7 +1272,7 @@ class accountContainer {
 		}
 		$table->addElement($rightGroup);
 
-		parseHtml(null, $table, array(), false, $tabindex, $this->type);
+		parseHtml(null, $table, array(), false, $tabindex, $this->type->getScope());
 		?>
 		  |