<?php
/**
 * BLOGS MANAGEMENT - PERMISSION ENFORCEMENT MODULE
 */
require_once __DIR__ . '/admin_page_header.php';
class EnforceManageBlogs {
    const FEATURE = 'manage_blogs';
    public static function guardPage() { AdminPageHeader::requirePage(self::FEATURE); }
    public static function guardAction($action) { AdminPageHeader::requireAction(self::FEATURE, $action); }
    public static function capabilities() { return AdminPageHeader::getGuard(self::FEATURE)->getCapabilities(); }
    public static function can($action) { return AdminPageHeader::can(self::FEATURE, $action); }
    public static function level() { return AdminPageHeader::getLevel(self::FEATURE); }
}
?>
