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
committerAndreas Gohr <andi@splitbrain.org>2014-06-25 18:58:26 +0200
commit0a2ef7a346f2ad930c05a95b39bfd2f293796170 (patch)
tree8a50075de8e0020334175d25881090d263a4d969 /lib/exe/ajax.php
parent3d710065050c0fe17941351ed07acf470fc73ce6 (diff)
downloadrpg-0a2ef7a346f2ad930c05a95b39bfd2f293796170.tar.gz
rpg-0a2ef7a346f2ad930c05a95b39bfd2f293796170.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);
}