diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-12 21:27:16 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-08-12 21:27:16 -0400 |
commit | 8aa247ca730a16c837859b644b0e2998d41885ac (patch) | |
tree | 5310819ac81ce4e4ca7502f4b43151eec3295174 /ajax/deletefolder.php | |
parent | 90fb216e7dd61c9571d225aa7c5c834c654d9cef (diff) |
checks userid before deleting
Diffstat (limited to 'ajax/deletefolder.php')
-rw-r--r-- | ajax/deletefolder.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ajax/deletefolder.php b/ajax/deletefolder.php index a6950ed40..daf9a8397 100644 --- a/ajax/deletefolder.php +++ b/ajax/deletefolder.php @@ -21,7 +21,7 @@ $folderid = trim($_POST['folderid']); $shownfeedid = trim($_POST['shownfeedid']); $part_items = false; -$foldermapper = new OCA\News\FolderMapper(); +$foldermapper = new OCA\News\FolderMapper($userid); if(!$foldermapper->deleteById($folderid)) { OCP\JSON::error(array('data' => array('message' => $l->t('Error removing folder.')))); |