Remove can_access_file_acl(). We no longer need this duplicate code (hurrah!).
[obnox/samba/samba-obnox.git] / source3 / smbd / dir.c
index cc7488681049c5465f00c16bbbd33164bbc78294..8af0dad8c3a6b92287719a7c1ee7abb07bbab9f0 100644 (file)
@@ -1161,7 +1161,9 @@ static bool user_can_read_file(connection_struct *conn,
                return True;
        }
 
-       return can_access_file_acl(conn, smb_fname, FILE_READ_DATA);
+       return NT_STATUS_IS_OK(smbd_check_access_rights(conn,
+                               smb_fname,
+                               FILE_READ_DATA));
 }
 
 /*******************************************************************