forked from 0x2620/pandora
add itemKey.advanced if set, key does not show in findElement
This commit is contained in:
parent
29600fa5f7
commit
ee2c59047b
1 changed files with 3 additions and 2 deletions
|
@ -34,8 +34,9 @@ pandora.ui.findElement = function() {
|
|||
id: 'select',
|
||||
items: [].concat(
|
||||
pandora.site.findKeys.filter(function(key, i) {
|
||||
return !key.capability
|
||||
|| pandora.site.capabilities[key.capability][pandora.user.level];
|
||||
return (!key.capability
|
||||
|| pandora.site.capabilities[key.capability][pandora.user.level])
|
||||
&& !key.advanced;
|
||||
}).map(function(key) {
|
||||
return {
|
||||
id: key.id,
|
||||
|
|
Loading…
Reference in a new issue