Merged in julceslau/processmaker (pull request #565)

Merge code from Github to Bitbucket 2014-06-30 10:45
This commit is contained in:
Julio Cesar Laura Avendaño
2014-06-30 10:48:34 -04:00
2 changed files with 9 additions and 8 deletions

1
.gitignore vendored
View File

@@ -36,4 +36,3 @@ workflow/public_html/build-log.html
temp.txt
update.sh
workflow/public_html/translations/

View File

@@ -266,14 +266,16 @@ class RBAC
*/
public function VerifyWithOtherAuthenticationSource ($sAuthType, $aUserFields, $strPass)
{
//check if the user is active
if ($aUserFields['USR_STATUS'] != 1) {
return - 3; //inactive user
}
if ($sAuthType == '' || $sAuthType == 'MYSQL') {
//check if the user is active
if ($aUserFields['USR_STATUS'] != 1) {
return - 3; //inactive user
}
//check if the user's due date is valid
if ($aUserFields['USR_DUE_DATE'] < date( 'Y-m-d' )) {
return - 4; //due date
//check if the user's due date is valid
if ($aUserFields['USR_DUE_DATE'] < date( 'Y-m-d' )) {
return - 4; //due date
}
}
foreach ($this->aRbacPlugins as $sClassName) {