BUG 11272 Processmaker don't have to let edit UserName and Role.

Now Processmaker don't let edit UserName and Role since a different Administrator role
This commit is contained in:
jennylee
2013-04-17 15:55:01 -04:00
parent 8c4bf869a7
commit 2296a937e4
3 changed files with 1 additions and 5 deletions

View File

@@ -1,2 +1 @@
<?php
//calculating the max upload file size;
<?php

View File

@@ -30,7 +30,6 @@ $oHeadPublisher = & headPublisher::getSingleton();
$oHeadPublisher->addExtJsScript( 'users/users', true ); //adding a javascript file .js
// $oHeadPublisher->addContent('users/users'); //adding a html file .html.
$oHeadPublisher->assign( 'USR_UID', $aFields['USR_UID'] );
$oHeadPublisher->assign( 'ROLE', $aFields['USR_ROLE']);
$oHeadPublisher->assign( 'infoMode', true );
$oHeadPublisher->assign( 'EDITPROFILE', 1);
$oHeadPublisher->assign( 'canEdit', $canEdit );

View File

@@ -394,7 +394,6 @@ Ext.onReady(function () {
selectOnFocus : true,
editable : false,
allowBlank : false,
hidden : (typeof(ROLE) != "undefined" && ROLE == "PROCESSMAKER_ADMIN")? false : true,
triggerAction : 'all',
mode : 'local'
});
@@ -423,7 +422,6 @@ Ext.onReady(function () {
width : 260,
allowBlank : false,
hidden : (typeof EDITPROFILE != "undefined" && EDITPROFILE == 1)? true : false,
hidden : (typeof(ROLE) != "undefined" && ROLE == "PROCESSMAKER_ADMIN")? false : true,
listeners: {
blur : function(ob)
{