- newsletter: prende la lista utenti (flag news_on)

- Abilita a Tutti la Newsletter news_on
- isCommerciale
- JobsInProgress
- PCB: Corretto Totali che era a zero
This commit is contained in:
Surya Paolo
2025-05-06 18:19:03 +02:00
parent 70f1e5cbf1
commit 57cfa5858b
53 changed files with 1123 additions and 428 deletions

View File

@@ -2677,6 +2677,7 @@ export const tools = {
|| (elem.onlyNotSoci && !userStore.my.profile.socio)
|| (elem.onlyFacilitatore && userStore.isFacilitatore)
|| (elem.onlyEditor && userStore.isEditor)
|| (elem.onlyCommerciale && userStore.isCommerciale)
|| (elem.onlyGrafico && userStore.isGrafico)
|| (elem.onlyDepartment && userStore.isDepartment)
|| ((!elem.onlyAdmin) && (!elem.onlyManager) && (!elem.onlyFacilitatore) && (!elem.onlyEditor) && (!elem.onlyDepartment)
@@ -3206,6 +3207,11 @@ export const tools = {
return userStore.isGrafico || userStore.isAdmin
},
isCommerciale() {
const userStore = useUserStore()
return userStore.isCommerciale || userStore.isAdmin
},
isTeacher() {
const userStore = useUserStore()
return userStore.isTeacher
@@ -7617,7 +7623,7 @@ export const tools = {
// return true
if (shared_consts.TABLES_PER_EDITORI.includes(tablesel)) {
if (userStore.isEditor || userStore.isGrafico || userStore.isAdmin) {
if (userStore.isCommerciale || userStore.isEditor || userStore.isGrafico || userStore.isAdmin) {
return true
}
}
@@ -9823,7 +9829,7 @@ export const tools = {
table: 'lista_editori',
key: 'referenti',
type: costanti.FieldType.select,
value: this.getCookie(this.COOK_SEARCH + costanti.FILTER_SEP + shared_consts.TABLES_CATALOG + costanti.FILTER_SEP + 'referente', costanti.FILTER_TUTTI),
value: this.getCookie(this.COOK_SEARCH + costanti.FILTER_SEP + shared_consts.TABLES_LISTA_EDITORI + costanti.FILTER_SEP + 'referente', costanti.FILTER_TUTTI),
keycookie: '',
addall: true,
arrvalue: [],