Skip to content

Commit

Permalink
Revert "Revert "Set the tasklist, if available.""
Browse files Browse the repository at this point in the history
This reverts commit 5299b5c.
  • Loading branch information
mrubinsk committed Aug 15, 2015
1 parent 5299b5c commit a068cd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nag/lib/Api.php
Expand Up @@ -1170,14 +1170,15 @@ public function toggleCompletion($task_id, $tasklist_id)
* - activesync: Horde_ActiveSync_Message_Task.
* - raw: Nag_Task.
* @param array $options Any additional options for the exporter.
* @param string $tasklist The tasklist to look in. @since 4.3.0
*
* @return string The requested data.
*/
public function export($uid, $contentType, array $options = array())
public function export($uid, $contentType, array $options = array(), $tasklist = null)
{
$task = $GLOBALS['injector']
->getInstance('Nag_Factory_Driver')
->create('')
->create($tasklist)
->getByUID($uid);
if (!Nag::hasPermission($task->tasklist, Horde_Perms::READ)) {
throw new Horde_Exception_PermissionDenied();
Expand Down

0 comments on commit a068cd8

Please sign in to comment.