Merged in julceslau/processmaker (pull request #565)
Merge code from Github to Bitbucket 2014-06-30 10:45
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -36,4 +36,3 @@ workflow/public_html/build-log.html
|
||||
temp.txt
|
||||
update.sh
|
||||
workflow/public_html/translations/
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user