Roxen.git/
server/
modules/
filesystems/
filesystem.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1997-06-11
1997-06-11 22:30:40 by Marcus Comstedt <marcus@mc.pp.se>
dbf74f865d7008694022f7eacf97216905cd0f49 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Changed the authorization check for DELETE.
Rev: server/modules/filesystems/filesystem.pike:1.16
4:
// It will be located somewhere in the name-space of the server. // Also inherited by some of the other filesystems.
-
string cvs_version= "$Id: filesystem.pike,v 1.
15
1997/06/
10
19
:
08
:
01
grubba
Exp $";
+
string cvs_version= "$Id: filesystem.pike,v 1.
16
1997/06/
11
22
:
30
:
40
marcus
Exp $";
#include <module.h> #include <roxen.h>
347:
id->misc->error_code = 405; return 0; }
-
if(QUERY(check_auth) && !id->
misc
->auth
_ok
)
+
if(QUERY(check_auth) &&
(
!id->
auth || !id
->auth
[0]
)
)
return http_low_answer(403, "<h1>Permission to DELETE file denied</h1>");
-
report_
error
("DELETING the file "+f+"\n");
+
report_
notice
("DELETING the file "+f+"\n");
accesses++; if (((int)id->misc->uid) && ((int)id->misc->gid)) {