- 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:
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user