summaryrefslogtreecommitdiff
path: root/lib/exe/ajax.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2014-06-25 15:55:20 +0200
committerMichael Hamann <michael@content-space.de>2014-06-25 16:00:35 +0200
commite8a2a143c4b67d54a907322b992320c2c778dafa (patch)
tree760bf1e90aa23c793e737767c3d53ae02c9c352a /lib/exe/ajax.php
parent5fd5f78803a876c5808be4d3ba63cc5b85754f25 (diff)
downloadrpg-e8a2a143c4b67d54a907322b992320c2c778dafa.tar.gz
rpg-e8a2a143c4b67d54a907322b992320c2c778dafa.tar.bz2
Quick fix for #765 - ACL checks in the media manager ajax calls
This should be superseded by a proper rewrite of the media manager code
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r--lib/exe/ajax.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php
index 1000094bc..a200a3ded 100644
--- a/lib/exe/ajax.php
+++ b/lib/exe/ajax.php
@@ -254,7 +254,7 @@ function ajax_mediadiff(){
$image = '';
if ($INPUT->has('image')) $image = cleanID($INPUT->str('image'));
- $NS = $INPUT->post->str('ns');
+ $NS = getNS($image);
$auth = auth_quickaclcheck("$NS:*");
media_diff($image, $NS, $auth, true);
}