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
|
temp.txt
|
||||||
update.sh
|
update.sh
|
||||||
workflow/public_html/translations/
|
workflow/public_html/translations/
|
||||||
|
|
||||||
|
|||||||
@@ -266,6 +266,7 @@ class RBAC
|
|||||||
*/
|
*/
|
||||||
public function VerifyWithOtherAuthenticationSource ($sAuthType, $aUserFields, $strPass)
|
public function VerifyWithOtherAuthenticationSource ($sAuthType, $aUserFields, $strPass)
|
||||||
{
|
{
|
||||||
|
if ($sAuthType == '' || $sAuthType == 'MYSQL') {
|
||||||
//check if the user is active
|
//check if the user is active
|
||||||
if ($aUserFields['USR_STATUS'] != 1) {
|
if ($aUserFields['USR_STATUS'] != 1) {
|
||||||
return - 3; //inactive user
|
return - 3; //inactive user
|
||||||
@@ -275,6 +276,7 @@ class RBAC
|
|||||||
if ($aUserFields['USR_DUE_DATE'] < date( 'Y-m-d' )) {
|
if ($aUserFields['USR_DUE_DATE'] < date( 'Y-m-d' )) {
|
||||||
return - 4; //due date
|
return - 4; //due date
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($this->aRbacPlugins as $sClassName) {
|
foreach ($this->aRbacPlugins as $sClassName) {
|
||||||
if (strtolower( $sClassName ) == strtolower( $sAuthType )) {
|
if (strtolower( $sClassName ) == strtolower( $sAuthType )) {
|
||||||
|
|||||||
Reference in New Issue
Block a user