Fix ACL plugin bug - return value of ACL plugins was being ignored

This commit is contained in:
Luke Howard 2004-01-01 06:33:18 +00:00
parent 0c0b29fc85
commit 03e5db818f

View File

@ -201,11 +201,13 @@ access_allowed(
}
#ifdef LDAP_SLAPI
if ( op->o_pb &&
!slapi_int_access_allowed( op, e, desc, val, access, state )) {
if ( op->o_pb != NULL ) {
ret = slapi_int_access_allowed( op, e, desc, val, access, state );
if ( ret == 0 ) {
/* ACL plugin denied access */
goto done;
}
}
#endif /* LDAP_SLAPI */
be = op->o_bd;