v39: все работники видят все мероприятия
This commit is contained in:
parent
0f570cf188
commit
3e88dd6280
@ -149,8 +149,7 @@ function saveEv(){localStorage.setItem("samruk_ev",JSON.stringify(events||[]))}
|
|||||||
|
|
||||||
function getMy(){
|
function getMy(){
|
||||||
if(!curUser||!events)return[];
|
if(!curUser||!events)return[];
|
||||||
if(curUser.role==="admin"||curUser.role==="curator")return events;
|
return events; // все видят все мероприятия
|
||||||
return events.filter(function(e){return e.b===curUser.branch});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===== FILE STORAGE =====
|
// ===== FILE STORAGE =====
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user