permissions.js 105 B

1234
  1. // Global, so no "var".
  2. ownsDocument = function (userId, doc) {
  3. return doc && doc.userId === userId;
  4. };