superdesk/superdesk-client-core

View on GitHub
scripts/apps/users/roles/RolesService.ts

Summary

Maintainability
A
0 mins
Test Coverage
export default class RolesService {
    _api: any;

    constructor(api) {
        this._api = api;
    }

    /**
     * Get user role
     *
     * @param {string} roleId
     */
    getUserRole(roleId) {
        return this._api.find('roles', roleId);
    }
}

RolesService.$inject = ['api'];