mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: bulk edit object permissions should use permissions object (#4797)
This commit is contained in:
parent
62c417cd51
commit
80ff5677ea
@ -80,7 +80,16 @@ describe('PermissionsDialogComponent', () => {
|
||||
it('should return permissions', () => {
|
||||
expect(component.permissions).toEqual({
|
||||
owner: null,
|
||||
set_permissions: null,
|
||||
set_permissions: {
|
||||
view: {
|
||||
users: [],
|
||||
groups: [],
|
||||
},
|
||||
change: {
|
||||
users: [],
|
||||
groups: [],
|
||||
},
|
||||
},
|
||||
})
|
||||
component.form.get('permissions_form').setValue(set_permissions)
|
||||
expect(component.permissions).toEqual(set_permissions)
|
||||
|
@ -52,8 +52,17 @@ export class PermissionsDialogComponent {
|
||||
get permissions() {
|
||||
return {
|
||||
owner: this.form.get('permissions_form').value?.owner ?? null,
|
||||
set_permissions:
|
||||
this.form.get('permissions_form').value?.set_permissions ?? null,
|
||||
set_permissions: this.form.get('permissions_form').value
|
||||
?.set_permissions ?? {
|
||||
view: {
|
||||
users: [],
|
||||
groups: [],
|
||||
},
|
||||
change: {
|
||||
users: [],
|
||||
groups: [],
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user