BUG 8664 "Con la opción user experience se puede aplicar al us.. Adm..." SOLVED

- missing validation
- validation added for users that have admins role
This commit is contained in:
Erik Amaru Ortiz
2012-03-08 10:45:58 -04:00
parent 2ef37673a1
commit 20e11d747d

View File

@@ -175,12 +175,11 @@ Ext.onReady(function(){
select: function(a, b) { select: function(a, b) {
var row = usersGrid.getSelectionModel().getSelected(); var row = usersGrid.getSelectionModel().getSelected();
role = row.get('USR_ROLE'); role = row.get('USR_ROLE');
//console.log(role)
// if (role == 'PROCESSMAKER_ADMIN') { if (role == 'PROCESSMAKER_ADMIN' && (this.value == 'SIMPLIFIED' || this.value == 'SINGLE')) {
// PMExt.warning(_('ID_ERROR'), 'You can\'t assign this User Experience UI for users that have PROCESSMAKER_ADMIN role.'); PMExt.warning(_('ID_WARNING'), _('ID_ADMINS_CANT_USE_UXS'));
// this.setValue('NORMAL'); this.setValue('NORMAL');
// } }
} }
} }
}) })