Leverege Platform

Leverege Platform

  • Overview
  • JSDocs
  • REST API
  • Help

›JSDoc

JSDoc

  • Home
  • API Server
  • API Attributes
  • Api Patch Ops
  • API Redux
  • Array Util
  • Base62 Util
  • Cache
  • Cluster Manager
  • Data Store
  • Exit
  • Factory
  • Limit
  • Lock
  • Message Queue
  • Messages
  • Path
  • Permissions
  • Reasoner
  • String Util
  • UI Active Theme
  • UI Elements
  • UI Linear View Elements
  • UI Mapbox Elements
  • Validator

Permissions

has()

Checks to see if Path.get( key, perm ) has the specific value in it. This uses indexOf() to determine the answer. This can operate with either strings or arrays: has( { x : 'rw' }, 'x', 'w' ) ==> true has( { x : ['r', 'w'] }, 'x', 'w' ) ==> true has( { x : 1 }, 'x', '1' ) ==> true If the Path.get( key, perm ) does not have an indexOf function, Path.get( key, perm ) == val will be used instead

Kind: global function

← PathReasoner →
  • has()
Leverege Platform
Docs
Overview
Connect
FacebookLinkedInTwitter
Facebook Open Source