This commit is contained in:
2024-01-29 10:39:53 +07:00
parent 545c404fdf
commit 72170f373a
143 changed files with 20188 additions and 3 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace Hura8\System;
use Hura8\Traits\ClassCacheTrait;
class Permission
{
use ClassCacheTrait;
public static function getClientEntities() : array {
return static::getCache("getClientEntities", function (){
$config_file = CONFIG_DIR . "/client/config_entities.php";
if(file_exists($config_file)) {
return include $config_file;
}
return [];
});
}
public static function getClientConfigPerModule() {
return static::getCache("getClientConfigPerModule", function (){
$config_file = CONFIG_DIR . "/client/admin/config_per_module_disabled.php";
if(file_exists($config_file)) {
return include $config_file;
}
return [];
});
}
}