summaryrefslogtreecommitdiff
path: root/src/controllers/Plugins.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/Plugins.class.php')
-rw-r--r--src/controllers/Plugins.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controllers/Plugins.class.php b/src/controllers/Plugins.class.php
index 597cd19..40d3fc0 100644
--- a/src/controllers/Plugins.class.php
+++ b/src/controllers/Plugins.class.php
@@ -1,12 +1,12 @@
<?php
+require_once('Login.class.php');
Router::register('plugins', 'Plugins');
class Plugins extends Controller {
public function index($routed, $remainder) {
- global $mm;
- $uid = $mm->isLoggedIn();
- if ($uid===false || !$m->getAuthObj($uid)->isAdim()) {
+ $uid = Login::isLoggedIn();
+ if ($uid===false || !Auth::getObj($uid)->isAdmin()) {
$this->http401($routed, $remainder);
return;
}