|
发表于 2014-3-19 10:25:40
|
显示全部楼层
Manage to do a trick to overcome this. Assign user 2 to the Admin group and then Unlock the element and then remove the user from the Admin group.. Worked for me...
CubeLockOverride(1) ;
nChangeStatus = 0 ;
sCheckGroup = CellGetS( '}ClientGroups' , 'User 2' , 'Group' ) ;
IF( sCheckGroup @= 'ADMIN' );
ELSE;
AssignClientToGroup( 'User 2' , 'Admin' );
dChangeStatus = 1 ;
ENDIF;
cCubeName = '}elementproperties_XYZ' ;
cEleName = 'A' ;
CellPutS( '' , cCubeName , cEleName, 'lock' ) ;
IF( dChangeStatus = 1 );
RemoveClientFromGroup( 'User 2' , 'Admin' );
ENDIF; |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|