forked from 0x2620/pandora
use pandora.hasCapability
This commit is contained in:
parent
4a69de4a05
commit
db2d37e2bb
32 changed files with 49 additions and 53 deletions
|
|
@ -35,7 +35,7 @@ pandora.ui.findElement = function() {
|
|||
items: [].concat(
|
||||
pandora.site.findKeys.filter(function(key, i) {
|
||||
return (!key.capability
|
||||
|| pandora.site.capabilities[key.capability][pandora.user.level])
|
||||
|| pandora.hasCapability(key.capability))
|
||||
&& !key.advanced;
|
||||
}).map(function(key) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue