Allow and Deny

Sidebar 8.5

Percentage Translated

In this chapter, you will:

  • Learn about Allow and Deny callbacks.
  • Understand in which order callbacks are called.
  • ////

    ////

    ////

    ////

    Multiple callbacks

    ////

    ////

    Note: n/e stands for Not Executed
    Note: n/e stands for Not Executed

    ////

    ////

    Latency Compensation

    ////

    ////

    ////

    Server-side permissions

    ////

    ////

    Using deny as a callback

    ////

    Posts.deny({
      update: function(userId, doc, fields, modifier) {
        doc.lastModified = +(new Date());
        return false;
      },
      transform: null
    });
    

    ////

    ////