Showing 1 of 1 total issue
Function checkPermissions
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function checkPermissions (options = {}) {
const {
entity: entityName = 'user',
field = 'permissions',
error = true