Skip to content

Commit

Permalink
Revert "Set the tasklist, if available."
Browse files Browse the repository at this point in the history
This reverts commit c1e53ad.
  • Loading branch information
mrubinsk committed Aug 15, 2015
1 parent c1e53ad commit 5299b5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nag/lib/Api.php
Expand Up @@ -1170,15 +1170,14 @@ 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(), $tasklist = null)
public function export($uid, $contentType, array $options = array())
{
$task = $GLOBALS['injector']
->getInstance('Nag_Factory_Driver')
->create($tasklist)
->create('')
->getByUID($uid);
if (!Nag::hasPermission($task->tasklist, Horde_Perms::READ)) {
throw new Horde_Exception_PermissionDenied();
Expand Down

0 comments on commit 5299b5c

Please sign in to comment.