no more needed

master
Jean-Christian Paul Denis 2023-05-10 11:38:33 +02:00
parent 99614a87ff
commit 3131fb6fe5
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
4 changed files with 1 additions and 14 deletions

View File

@ -25,7 +25,6 @@ class Backend extends dcNsProcess
public static function init(): bool
{
static::$init = defined('DC_CONTEXT_ADMIN')
&& My::phpCompliant()
&& !is_null(dcCore::app()->auth) && !is_null(dcCore::app()->blog) // nullsafe PHP < 8.0
&& dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([
dcCore::app()->auth::PERMISSION_CONTENT_ADMIN,

View File

@ -25,7 +25,7 @@ class Frontend extends dcNsProcess
public static function init(): bool
{
static::$init = true;
static::$init = defined('DC_RC_PATH');
return static::$init;
}

View File

@ -37,7 +37,6 @@ class Manage extends dcNsProcess
public static function init(): bool
{
static::$init = defined('DC_CONTEXT_ADMIN')
&& My::phpCompliant()
&& !is_null(dcCore::app()->auth) && !is_null(dcCore::app()->blog) // nullsafe PHP < 8.0
&& dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([
dcCore::app()->auth::PERMISSION_CONTENT_ADMIN,

View File

@ -21,9 +21,6 @@ use dcCore;
*/
class My
{
/** @var string Required php version */
public const PHP_MIN = '7.4';
/**
* This module id.
*/
@ -50,14 +47,6 @@ class My
return dirname(__DIR__);
}
/**
* Check this module PHP version compliant.
*/
public static function phpCompliant(): bool
{
return version_compare(phpversion(), self::PHP_MIN, '>=');
}
/**
* Get distributed models.
*