Permission/PermissionManager.php
private function buildSystemPermissions($id): void
    {
        foreach ($this->configs as $config) {
            foreach ($config->getOperations() as $operation) {
                $field = PermissionUtils::getMapAction(null);
                $this->cache[$id][$config->getType()][$field][$operation] = true;
            }

            foreach ($config->getFields() as $fieldConfig) {
                foreach ($fieldConfig->getOperations() as $operation) {
                    $this->cache[$id][$config->getType()][$fieldConfig->getField()][$operation] = true;
                }
            }
        }
    }
private function buildSystemPermissions($id): void
    {
        foreach ($this->configs as $config) {
            foreach ($config->getOperations() as $operation) {
                $field = PermissionUtils::getMapAction(null);
                $this->cache[$id][$config->getType()][$field][$operation] = true;
            }

            foreach ($config->getFields() as $fieldConfig) {
                foreach ($fieldConfig->getOperations() as $operation) {
                    $this->cache[$id][$config->getType()][$fieldConfig->getField()][$operation] = true;
                }
            }
        }
    }
private function buildSystemPermissions ( $ id ) : void { foreach ( $ this -> configs as $ config ) { foreach ( $ config -> getOperations ( ) as $ operation ) { $ field = PermissionUtils :: getMapAction ( null ) ; $ this -> cache [ $ id ] [ $ config -> getType ( ) ] [ $ field ] [ $ operation ] = true ; } foreach ( $ config -> getFields ( ) as $ fieldConfig ) { foreach ( $ fieldConfig -> getOperations ( ) as $ operation ) { $ this -> cache [ $ id ] [ $ config -> getType ( ) ] [ $ fieldConfig -> getField ( ) ] [ $ operation ] = true ; } } } }
Build the system permissions.

@param string $id The cache id
Build the system permissions .