private function getParentPermissions() : array
    {
        $result = [];
        foreach ($this->table->associations() as $association) {
            if (! $this->isSupportedJoinAssociation($association)) {
                continue;
            }

            if (! $this->isParentModuleAssociation($association)) {
                continue;
            }

            $foreignKey = $association->getForeignKey();
            Assert::string($foreignKey);

            $field = sprintf('%s IN', $foreignKey);
            $result[$field] = $this->getPermissionsByModel($this->getModelByAssociation($association));
        }

        return $result;
    }
private function getParentPermissions() : array
    {
        $result = [];
        foreach ($this->table->associations() as $association) {
            if (! $this->isSupportedJoinAssociation($association)) {
                continue;
            }

            if (! $this->isParentModuleAssociation($association)) {
                continue;
            }

            $foreignKey = $association->getForeignKey();
            Assert::string($foreignKey);

            $field = sprintf('%s IN', $foreignKey);
            $result[$field] = $this->getPermissionsByModel($this->getModelByAssociation($association));
        }

        return $result;
    }
private function getParentPermissions ( ) : array { $ result = [ ] ; foreach ( $ this -> table -> associations ( ) as $ association ) { if ( ! $ this -> isSupportedJoinAssociation ( $ association ) ) { continue ; } if ( ! $ this -> isParentModuleAssociation ( $ association ) ) { continue ; } $ foreignKey = $ association -> getForeignKey ( ) ; Assert :: string ( $ foreignKey ) ; $ field = sprintf ( '%s IN' , $ foreignKey ) ; $ result [ $ field ] = $ this -> getPermissionsByModel ( $ this -> getModelByAssociation ( $ association ) ) ; } return $ result ; }
User permissions getter, by parent module.

@return mixed[]
User permissions getter by parent module .