Conch API

Logo

Datacenter build and management service

View the Project on GitHub joyent/conch-api

NAME

Conch::DB::ResultSet::UserWorkspaceRole

DESCRIPTION

Interface to queries involving user/workspace permissions.

METHODS

with_permission

Constrains the resultset to those user_workspace_role rows that grant (at least) the specified permission level.

user_has_permission

Returns a boolean indicating whether there exists a user_workspace_role row that grant (at least) the specified permission level.

LICENSING

Copyright Joyent, Inc.

This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.