Skip to content

Commit

Permalink
global
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jan 29, 2017
1 parent 94122b2 commit f5d467e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansel/lib/ActionHandler.php
Expand Up @@ -112,7 +112,7 @@ public static function imageActions($actionID)
$gallery_id = $img->gallery;
}
$gallery = $storage->getgallery($gallery_id);
if (!$gallery->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::DELETE)) {
if (!$gallery->hasPermission($registry->getAuth(), Horde_Perms::DELETE)) {
$notification->push(_("Access denied deleting photos from this gallery."), 'horde.error');
} else {
try {
Expand Down Expand Up @@ -257,7 +257,7 @@ public static function imageActions($actionID)
*/
public static function editActions($actionID)
{
global $notification, $page_output, $registry, $storage;
global $notification, $page_output, $registry, $storage, $injector;

$gallery_id = Horde_Util::getFormData('gallery');
$image_id = Horde_Util::getFormData('image');
Expand Down

0 comments on commit f5d467e

Please sign in to comment.