diff --git a/bitwarden_license/src/app/organizations/organizations-routing.module.ts b/bitwarden_license/src/app/organizations/organizations-routing.module.ts index 1ad83403..5ad731eb 100644 --- a/bitwarden_license/src/app/organizations/organizations-routing.module.ts +++ b/bitwarden_license/src/app/organizations/organizations-routing.module.ts @@ -24,8 +24,11 @@ const routes: Routes = [ canActivate: [OrganizationTypeGuardService], data: { permissions: [ - Permissions.ManageAssignedCollections, - Permissions.ManageAllCollections, + Permissions.CreateNewCollections, + Permissions.EditAnyCollection, + Permissions.DeleteAnyCollection, + Permissions.EditAssignedCollections, + Permissions.DeleteAssignedCollections, Permissions.AccessEventLogs, Permissions.ManageGroups, Permissions.ManageUsers, diff --git a/jslib b/jslib deleted file mode 160000 index b3beb47a..00000000 --- a/jslib +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b3beb47a4a0af5f4cf98142166f291b8248da54b diff --git a/src/app/organizations/manage/collection-add-edit.component.html b/src/app/organizations/manage/collection-add-edit.component.html index 18c71da9..26cb81c8 100644 --- a/src/app/organizations/manage/collection-add-edit.component.html +++ b/src/app/organizations/manage/collection-add-edit.component.html @@ -15,17 +15,18 @@
+ appAutofocus [disabled]="!this.canSave">
- + {{'externalIdDesc' | i18n}}

{{'groupAccess' | i18n}} -
+
@@ -50,7 +51,7 @@ + [disabled]="g.accessAll || !this.canSave" appStopProp> {{g.name}} @@ -62,11 +63,11 @@ + name="Groups[{{i}}].HidePasswords" [disabled]="!g.checked || g.accessAll || !this.canSave"> + [disabled]="!g.checked || g.accessAll || !this.canSave"> @@ -74,22 +75,23 @@
diff --git a/src/app/organizations/manage/collection-add-edit.component.ts b/src/app/organizations/manage/collection-add-edit.component.ts index a9b030d4..b338d37d 100644 --- a/src/app/organizations/manage/collection-add-edit.component.ts +++ b/src/app/organizations/manage/collection-add-edit.component.ts @@ -29,6 +29,8 @@ import { Utils } from 'jslib-common/misc/utils'; export class CollectionAddEditComponent implements OnInit { @Input() collectionId: string; @Input() organizationId: string; + @Input() canSave: boolean; + @Input() canDelete: boolean; @Output() onSavedCollection = new EventEmitter(); @Output() onDeletedCollection = new EventEmitter(); diff --git a/src/app/organizations/manage/collections.component.html b/src/app/organizations/manage/collections.component.html index cb466557..3d85da04 100644 --- a/src/app/organizations/manage/collections.component.html +++ b/src/app/organizations/manage/collections.component.html @@ -6,7 +6,7 @@ - @@ -27,17 +27,17 @@ {{c.name}} -