permissions.js 179 B

12345678910111213
  1. /**
  2. * @file
  3. *
  4. *
  5. * User: marand
  6. * Date: 02/09/15
  7. * Time: 08:58
  8. */
  9. // Global, so no "var".
  10. ownsDocument = function (userId, doc) {
  11. return doc && doc.userId === userId;
  12. };