diff --git a/bitwarden_license/src/app/organizations/organizations-routing.module.ts b/bitwarden_license/src/app/organizations/organizations-routing.module.ts index 1ad83403ca2..5ad731eb54c 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 index f09fb698825..815b436f7ce 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit f09fb69882525b3be7b2e257e7723eeb79b343d1 +Subproject commit 815b436f7ce9f8825575f288b1ae98c1dc54f1d2 diff --git a/src/app/organizations/manage/collection-add-edit.component.html b/src/app/organizations/manage/collection-add-edit.component.html index 18c71da9052..26cb81c8d13 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 1f5561953fb..c4c66e6e79f 100644 --- a/src/app/organizations/manage/collection-add-edit.component.ts +++ b/src/app/organizations/manage/collection-add-edit.component.ts @@ -30,6 +30,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 cb466557146..3d85da045d5 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}} -