forked from MapComplete/MapComplete
Refactoring: introduce 'isPrivileged'
This commit is contained in:
parent
6ca055cf28
commit
f405116bb1
11 changed files with 29 additions and 28 deletions
|
|
@ -62,7 +62,7 @@ export default class StudioServer {
|
|||
}
|
||||
const category = <"layers" | "themes">parts[0]
|
||||
const id = file.substring(file.lastIndexOf("/") + 1, file.length - ".json".length)
|
||||
if (Constants.priviliged_layers.indexOf(<any>id) > 0) {
|
||||
if (Constants.isPriviliged(id)) {
|
||||
continue
|
||||
}
|
||||
layerOverview.push({ id, owner, category })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue