浏览代码

User/status must be read-only in demo mode

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4234 a333f486-631f-4898-b8df-5754b55c2be0
romainq 9 年之前
父节点
当前提交
6bcab2c587

+ 1 - 1
datamodels/1.x/authent-local/model.authent-local.php

@@ -121,7 +121,7 @@ class UserLocal extends UserInternal
 		$iFlags = parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState);
 		$iFlags = parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState);
 		if (MetaModel::GetConfig()->Get('demo_mode'))
 		if (MetaModel::GetConfig()->Get('demo_mode'))
 		{
 		{
-			if (strpos('contactid,login,language,password,profile_list,allowed_org_list', $sAttCode) !== false)
+			if (strpos('contactid,login,language,password,status,profile_list,allowed_org_list', $sAttCode) !== false)
 			{
 			{
 				// contactid and allowed_org_list are disabled to make sure the portal remains accessible 
 				// contactid and allowed_org_list are disabled to make sure the portal remains accessible 
 				$aReasons[] = 'Sorry, this attribute is read-only in the demonstration mode!';
 				$aReasons[] = 'Sorry, this attribute is read-only in the demonstration mode!';

+ 1 - 1
datamodels/2.x/authent-local/model.authent-local.php

@@ -121,7 +121,7 @@ class UserLocal extends UserInternal
 		$iFlags = parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState);
 		$iFlags = parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState);
 		if (MetaModel::GetConfig()->Get('demo_mode'))
 		if (MetaModel::GetConfig()->Get('demo_mode'))
 		{
 		{
-			if (strpos('contactid,login,language,password,profile_list,allowed_org_list', $sAttCode) !== false)
+			if (strpos('contactid,login,language,password,status,profile_list,allowed_org_list', $sAttCode) !== false)
 			{
 			{
 				// contactid and allowed_org_list are disabled to make sure the portal remains accessible 
 				// contactid and allowed_org_list are disabled to make sure the portal remains accessible 
 				$aReasons[] = 'Sorry, this attribute is read-only in the demonstration mode!';
 				$aReasons[] = 'Sorry, this attribute is read-only in the demonstration mode!';