forked from Public/pics
Make logging in mandatory.
This commit is contained in:
@@ -16,6 +16,10 @@ class ViewPhotoAlbum extends HTMLController
|
||||
|
||||
public function __construct($title = 'Photos - ' . SITE_TITLE)
|
||||
{
|
||||
// Ensure we're logged in at this point.
|
||||
if (!Registry::get('user')->isLoggedIn())
|
||||
throw new NotAllowedException();
|
||||
|
||||
// Viewing an album?
|
||||
if (isset($_GET['tag']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user