]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/delete.c
trim listed modules
[openldap] / servers / slapd / back-shell / delete.c
index 8721efb082b5882f7fa457f5c4be382769e94af1..90f270404b679b13a91b5930a2ff175bf07da2de 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2007 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -64,7 +64,7 @@ shell_back_delete(
        e.e_private = NULL;
 
        if ( ! access_allowed( op, &e,
-               entry, NULL, ACL_WRITE, NULL ) )
+               entry, NULL, ACL_WDEL, NULL ) )
        {
                send_ldap_error( op, rs, LDAP_INSUFFICIENT_ACCESS, NULL );
                return -1;