forked from Public/pics
Make logging in mandatory.
This commit is contained in:
1 parent
bfcbe5aa2e
commit
3587447cc0
8 files changed
+60
-57
No files matched your search
@@ -12,6 +12,10 @@ class ViewPeople extends HTMLController
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
// Ensure we're logged in at this point.
|
||||
if (!Registry::get('user')->isLoggedIn())
|
||||
throw new NotAllowedException();
|
||||
|
||||
$page = isset($_GET['page']) ? (int) $_GET['page'] : 1;
|
||||
$start = ($page - 1) * self::PER_PAGE;
|
||||
$total_count = Tag::getCount(1, 'Person');
|
||||
|
||||
Reference in new issue
Block a user