MetaMask / rpc-cap

A module for adding an object-capabilities system to any JSON-RPC API as middleware for json-rpc-engine
ISC License
31 stars 32 forks source link

Add hasPermissions methods #123

Closed rekmarks closed 3 years ago

rekmarks commented 3 years ago

Adds hasPermission and hasPermissions. These will enable low-hanging performance enhancements when all you want to know is whether a domain has any or a particular permission.

Also adds tests. As part of adding the tests the following updates were made: