From: Jason Etheridge Date: Wed, 2 Nov 2022 07:09:34 +0000 (-0400) Subject: no reason to not let folks look at all stat cats if they want to dig or crib X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=dd6a31bde05b39c08934ea84261e06fc4d731efe;p=working%2FEvergreen.git no reason to not let folks look at all stat cats if they want to dig or crib Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/stat_cat/stat_cat.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/stat_cat/stat_cat.component.html index 7f1adee0a7..a56b6806c7 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/stat_cat/stat_cat.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/stat_cat/stat_cat.component.html @@ -11,7 +11,6 @@
Focus location
Focus location { this.userPerms = userPerms; - const allOrgs = this.org.list(); - - // View permission is the same as permission to update, - // which is how it was handled in the old UI. - this.hiddenCopyOrgs = allOrgs.filter(x => { - return !this.userPerms.UPDATE_COPY_STAT_CAT.includes(x.id()); - }).map(x => { - return x.id(); - }); - this.hiddenPatronOrgs = allOrgs.filter(x => { - return !this.userPerms.UPDATE_PATRON_STAT_CAT.includes(x.id()); - }).map(x => { - return x.id(); - }); if (this.route.snapshot.paramMap.get('tab') === 'patron') { this.onTabChange({nextId: '\'patron\''}); @@ -95,10 +77,6 @@ export class StatCatComponent implements OnInit { }); } - disableCopyOrgs = () => this.org.filterList( { inList: this.hiddenCopyOrgs }, true); - - disablePatronOrgs = () => this.org.filterList( { inList: this.hiddenCopyOrgs }, true); - setCurrentPerms() { this.userPerms.canEditCopy = this.userPerms.UPDATE_COPY_STAT_CAT.indexOf(this.selectedCopyOrgId) !== -1;