Make logging in mandatory.

This commit is contained in:
2016-09-02 11:16:01 +02:00
parent bfcbe5aa2e
commit 3587447cc0
8 changed files with 60 additions and 57 deletions

View File

@@ -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']))
{