Backend\Core\Installer\ModuleInstaller::setModuleRights PHP Method

setModuleRights() protected method

Sets the rights for a module
protected setModuleRights ( integer $groupId, string $module )
$groupId integer The group wherefore the rights will be set.
$module string The module too set the rights for.
    protected function setModuleRights($groupId, $module)
    {
        $groupId = (int) $groupId;
        $module = (string) $module;
        // module doesn't exist
        if (!(bool) $this->getDB()->getVar('SELECT 1
             FROM groups_rights_modules
             WHERE group_id = ? AND module = ?
             LIMIT 1', array((int) $groupId, (string) $module))) {
            $item = array('group_id' => $groupId, 'module' => $module);
            $this->getDB()->insert('groups_rights_modules', $item);
        }
    }