src/Application.php
public function getDefaultPerm($pgroup)
    {
        $group = strtolower($pgroup);
        switch ($group) {
            default:
            case 'owner':
                $setting = $this->getUserPreference('owner_perm');
                if ($setting != '') {
                    $perm_code = $setting;
                } else {
                    $perm_code = OPENBIZ_DEFAULT_OWNER_PERM;
                }
                break;
            case 'group':
                $setting = $this->getUserPreference('owner_group');
                if ($setting != '') {
                    $perm_code = $setting;
                } else {
                    $perm_code = OPENBIZ_DEFAULT_GROUP_PERM;
                }
                break;
            case 'other':
                $setting = $this->getUserPreference('owner_other');
                if ($setting != '') {
                    $perm_code = $setting;
                } else {
                    $perm_code = OPENBIZ_DEFAULT_OTHER_PERM;
                }
                break;
        }
        return $perm_code;
    }
public function getDefaultPerm($pgroup)
    {
        $group = strtolower($pgroup);
        switch ($group) {
            default:
            case 'owner':
                $setting = $this->getUserPreference('owner_perm');
                if ($setting != '') {
                    $perm_code = $setting;
                } else {
                    $perm_code = OPENBIZ_DEFAULT_OWNER_PERM;
                }
                break;
            case 'group':
                $setting = $this->getUserPreference('owner_group');
                if ($setting != '') {
                    $perm_code = $setting;
                } else {
                    $perm_code = OPENBIZ_DEFAULT_GROUP_PERM;
                }
                break;
            case 'other':
                $setting = $this->getUserPreference('owner_other');
                if ($setting != '') {
                    $perm_code = $setting;
                } else {
                    $perm_code = OPENBIZ_DEFAULT_OTHER_PERM;
                }
                break;
        }
        return $perm_code;
    }
Get default user perm
@param type $pgroup
@return string