Some falukant fixes, added undeground ui - no save right now, changed menu (and verification)
This commit is contained in:
@@ -56,6 +56,19 @@ const menuStructure = {
|
||||
diary: {
|
||||
visible: ["all"],
|
||||
path: "/socialnetwork/diary"
|
||||
},
|
||||
erotic: {
|
||||
visible: ["over18"],
|
||||
children: {
|
||||
pictures: {
|
||||
visible: ["over18"],
|
||||
path: "/socialnetwork/erotic/pictures"
|
||||
},
|
||||
videos: {
|
||||
visible: ["over18"],
|
||||
path: "/socialnetwork/erotic/videos"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -70,6 +83,10 @@ const menuStructure = {
|
||||
randomChat: {
|
||||
visible: ["over12"],
|
||||
action: "openRanomChat"
|
||||
},
|
||||
eroticChat: {
|
||||
visible: ["over18"],
|
||||
action: "openEroticChat"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -248,6 +265,8 @@ class NavigationController {
|
||||
if (value.visible.includes("all")
|
||||
|| value.visible.some(v => rights.includes(v) || (value.visible.includes("anyadmin") && rights.length > 0))
|
||||
|| (value.visible.includes("over14") && age >= 14)
|
||||
|| (value.visible.includes("over12") && age >= 12)
|
||||
|| (value.visible.includes("over18") && age >= 18)
|
||||
|| (value.visible.includes('nofalukantaccount') && !hasFalukantAccount)
|
||||
|| (value.visible.includes('hasfalukantaccount') && hasFalukantAccount)) {
|
||||
const { visible, ...itemWithoutVisible } = value;
|
||||
|
||||
Reference in New Issue
Block a user