1
This commit is contained in:
parent
92176b4727
commit
4ebf88e9f0
@ -763,12 +763,20 @@
|
|||||||
X.DATA['ProjectData'] = d.spaces;
|
X.DATA['ProjectData'] = d.spaces;
|
||||||
if(d.spaces.length > 0){
|
if(d.spaces.length > 0){
|
||||||
X.DATA.authority = d.spaces[0]['authority'];
|
X.DATA.authority = d.spaces[0]['authority'];
|
||||||
if(d.spaces[0]['authority'] == "rw" && d.spaces[0]['children'][0]['user_id'] == X.DATA['userinfo']['userid']){
|
for(let i in d.spaces){
|
||||||
|
if(d.spaces[i]['children'].length > 0){
|
||||||
|
if(d.spaces[i]['authority'] == "rw" && d.spaces[i]['children'][i]['user_id'] == X.DATA['userinfo']['userid']){
|
||||||
$(".baobiao").show();
|
$(".baobiao").show();
|
||||||
|
continue;
|
||||||
}else{
|
}else{
|
||||||
$(".baobiao").hide();
|
$(".baobiao").hide();
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
for(let i in d.spaces){
|
for(let i in d.spaces){
|
||||||
if(d.spaces[i]['children'].length > 0){
|
if(d.spaces[i]['children'].length > 0){
|
||||||
|
Loading…
Reference in New Issue
Block a user