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:
Vera Osokina
2013-04-16 17:22:01 -04:00
parent 4b690783dc
commit 8c4bf869a7
3 changed files with 6 additions and 1 deletions

View File

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

View File

@@ -30,6 +30,7 @@ $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,6 +394,7 @@ Ext.onReady(function () {
selectOnFocus : true,
editable : false,
allowBlank : false,
hidden : (typeof(ROLE) != "undefined" && ROLE == "PROCESSMAKER_ADMIN")? false : true,
triggerAction : 'all',
mode : 'local'
});
@@ -421,6 +422,8 @@ Ext.onReady(function () {
xtype : 'textfield',
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)
{