summaryrefslogtreecommitdiff
path: root/lib/exe/ajax.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-06-25 18:47:28 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-06-25 18:47:28 +0200
commit451b79df62397b211e650c923c674913ee03b066 (patch)
tree760bf1e90aa23c793e737767c3d53ae02c9c352a /lib/exe/ajax.php
parent5fd5f78803a876c5808be4d3ba63cc5b85754f25 (diff)
parente8a2a143c4b67d54a907322b992320c2c778dafa (diff)
downloadrpg-451b79df62397b211e650c923c674913ee03b066.tar.gz
rpg-451b79df62397b211e650c923c674913ee03b066.tar.bz2
Merge pull request #766 from splitbrain/media_acl_fix
Quick fix for #765 - ACL checks in the media manager ajax calls
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);
}