mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
* EC-265 - Initial stubs for SCIM config UI * EC-265 - Scim config screen and plumbing * EC-265 - Scim config component works! Needs cleanup * EC-265 - Finalize scim config screen * EC-265 - Remove scim url from storage and env urls * EC-265 - Refactor to use new component library * EC-265 - Angular warnings on disabled attr resolved * EC-265 - Continued transition to new components * EC-265 - Page loading spinner pattern * EC-265 - final SCIM configuration form changes * scim cleanup * use scim urls * suggested changes * feedback fixes * remove return * Move scimUrl logic to EnvironmentService * Refactor scim url handling Co-authored-by: Kyle Spearrin <kyle.spearrin@gmail.com> Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
58 lines
2.5 KiB
TypeScript
58 lines
2.5 KiB
TypeScript
import { BaseResponse } from "../response/baseResponse";
|
|
|
|
export class PermissionsApi extends BaseResponse {
|
|
accessEventLogs: boolean;
|
|
accessImportExport: boolean;
|
|
accessReports: boolean;
|
|
/**
|
|
* @deprecated Sep 29 2021: This permission has been split out to `createNewCollections`, `editAnyCollection`, and
|
|
* `deleteAnyCollection`. It exists here for backwards compatibility with Server versions <= 1.43.0
|
|
*/
|
|
manageAllCollections: boolean;
|
|
createNewCollections: boolean;
|
|
editAnyCollection: boolean;
|
|
deleteAnyCollection: boolean;
|
|
/**
|
|
* @deprecated Sep 29 2021: This permission has been split out to `editAssignedCollections` and
|
|
* `deleteAssignedCollections`. It exists here for backwards compatibility with Server versions <= 1.43.0
|
|
*/
|
|
manageAssignedCollections: boolean;
|
|
editAssignedCollections: boolean;
|
|
deleteAssignedCollections: boolean;
|
|
manageCiphers: boolean;
|
|
manageGroups: boolean;
|
|
manageSso: boolean;
|
|
managePolicies: boolean;
|
|
manageUsers: boolean;
|
|
manageResetPassword: boolean;
|
|
manageScim: boolean;
|
|
|
|
constructor(data: any = null) {
|
|
super(data);
|
|
if (data == null) {
|
|
return this;
|
|
}
|
|
this.accessEventLogs = this.getResponseProperty("AccessEventLogs");
|
|
this.accessImportExport = this.getResponseProperty("AccessImportExport");
|
|
this.accessReports = this.getResponseProperty("AccessReports");
|
|
|
|
// For backwards compatibility with Server <= 1.43.0
|
|
this.manageAllCollections = this.getResponseProperty("ManageAllCollections");
|
|
this.manageAssignedCollections = this.getResponseProperty("ManageAssignedCollections");
|
|
|
|
this.createNewCollections = this.getResponseProperty("CreateNewCollections");
|
|
this.editAnyCollection = this.getResponseProperty("EditAnyCollection");
|
|
this.deleteAnyCollection = this.getResponseProperty("DeleteAnyCollection");
|
|
this.editAssignedCollections = this.getResponseProperty("EditAssignedCollections");
|
|
this.deleteAssignedCollections = this.getResponseProperty("DeleteAssignedCollections");
|
|
|
|
this.manageCiphers = this.getResponseProperty("ManageCiphers");
|
|
this.manageGroups = this.getResponseProperty("ManageGroups");
|
|
this.manageSso = this.getResponseProperty("ManageSso");
|
|
this.managePolicies = this.getResponseProperty("ManagePolicies");
|
|
this.manageUsers = this.getResponseProperty("ManageUsers");
|
|
this.manageResetPassword = this.getResponseProperty("ManageResetPassword");
|
|
this.manageScim = this.getResponseProperty("ManageScim");
|
|
}
|
|
}
|