0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server/permissions
Jacob Gable 88d82ff441 canThis() improvements
- Handle passing undefined user to canThis
  - Add existence check to parseContext if statement
  - Add unit test that passes undefined to canThis
- Allow internal canThis() checks
  - Allow passing 'internal' or { internal: true } as context
  - Do not lookup user permissions unless context.user found
  - If context.internal, resolve immediately
  - Add unit tests for passing 'internal' and { internal: true }
2014-04-16 18:17:43 +02:00
..
effective.js Add new permissions to fixtures 2014-04-16 18:16:10 +02:00
index.js canThis() improvements 2014-04-16 18:17:43 +02:00
objectTypeModelMap.js Cleanup indentation and quotes 2013-09-26 15:06:31 +01:00