diff --git a/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php b/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php index 4cfcf8b..703af7c 100644 --- a/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php +++ b/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php @@ -116,7 +116,7 @@ public static function getVersion($type = 'major') * @param string $ext file extention * @return boolean/string */ - public static function createThumbs($src, $sizes = array(), $folder, $base_name, $ext) + public static function createThumbs($src, $sizes , $folder, $base_name, $ext) { list($originalWidth, $originalHeight) = getimagesize($src); diff --git a/administrator/components/com_speasyimagegallery/models/albums.php b/administrator/components/com_speasyimagegallery/models/albums.php index 5206b6a..0a2907e 100644 --- a/administrator/components/com_speasyimagegallery/models/albums.php +++ b/administrator/components/com_speasyimagegallery/models/albums.php @@ -175,6 +175,12 @@ protected function getListQuery() } } + // Filter by access level + $access_level = $this->getState('filter.access'); + if (!empty($access_level)) { + $query->where('a.access = ' . (int) $access_level); + } + // Add the list ordering clause. $orderCol = $app->getUserStateFromRequest($this->context.'filter_order', 'filter_order', 'id', 'cmd'); $orderDirn = $app->getUserStateFromRequest($this->context.'filter_order_Dir', 'filter_order_Dir', 'desc', 'cmd'); @@ -183,5 +189,4 @@ protected function getListQuery() return $query; } -} - +} \ No newline at end of file diff --git a/administrator/components/com_speasyimagegallery/views/albums/tmpl/default.php b/administrator/components/com_speasyimagegallery/views/albums/tmpl/default.php index 67c9ca9..34aa9a7 100644 --- a/administrator/components/com_speasyimagegallery/views/albums/tmpl/default.php +++ b/administrator/components/com_speasyimagegallery/views/albums/tmpl/default.php @@ -153,7 +153,7 @@