protected function getStandardPermissions(array $options, $master, $owner)
    {
        switch ($options['permissions']) {
            case 'standard::object':
                $disable = array ();
                // if not owner or master, disable all permissions
                if (!$master && !$owner) {
                    $disable = array (1, 3, 4, 6, 7, 8);
                }
                // if not master, disable
                // 5 -> undelete is not used
                return array (
                    'show' => array (
                        1 => 'View',
                        3 => 'Edit',
                        4 => 'Delete',
                        6 => 'Operator',
                        7 => 'Master',
                        8 => 'Owner'
                    ),
                    'disable' => $disable);
                break;
            case 'standard::class':
                return array (
                    'show' => array (
                        1 => 'View',
                        2 => 'Create',
                        3 => 'Edit',
                        4 => 'Delete',
                        6 => 'Operator',
                        7 => 'Master',
                        8 => 'Owner'
                ));
                break;
            default:
                throw new \RuntimeException('"' . $options['permissions'] .
                '" is not a valid standard permission set identifier');
        }
    }