[Tickets #11227] Error: "Locked galleries are not viewable via the api." for non locked gallery

bugs at horde.org bugs at horde.org
Fri Jun 22 21:18:25 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11227
------------------------------------------------------------------------------
  Ticket             | 11227
  Created By         | maxime at memesi.net
  Summary            | Error: "Locked galleries are not viewable via the api."
                     | for non locked gallery
  Queue              | Ansel
  Version            | 2.0.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
------------------------------------------------------------------------------


maxime at memesi.net (2012-06-22 21:18) wrote:

When trying to access gallery via api :
ansel/lib/Api.php On line 654
         // Check age and password
         if (!$gallery->hasPasswd() || !$gallery->isOldEnough()) {
             throw new Horde_Exception_PermissionDenied(
                 _("Locked galleries are not viewable via the api."));
         }

I think this should be :
         // Check age and password
         if ($gallery->hasPasswd() || !$gallery->isOldEnough()) {
             throw new Horde_Exception_PermissionDenied(
                 _("Locked galleries are not viewable via the api."));
         }






More information about the bugs mailing list