]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/backend.c
ITS#6132: Fix slapi_entry_has_children()
[openldap] / servers / slapd / backend.c
index 7e0dbce7d99f9a6648ecc5c486afdb40fd6ea947..ac9dda235f1bd2361d0c8d3c4e9a5dcf86e5ded1 100644 (file)
@@ -1296,7 +1296,8 @@ backend_check_restrictions(
        }
 
        if( ( restrictops & opflag )
-                       || ( exopflag && ( restrictops & exopflag ) ) ) {
+                       || ( exopflag && ( restrictops & exopflag ) )
+                       || (( restrictops & SLAP_RESTRICT_READONLY ) && updateop )) {
                if( ( restrictops & SLAP_RESTRICT_OP_MASK) == SLAP_RESTRICT_OP_READS ) {
                        rs->sr_text = "read operations restricted";
                } else if ( restrictops & exopflag ) {