Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Problem with ACL

Hi Jonker,

  1. To access collection only with logged in users - you have to set secure collection.

    See details here: http://devcenter.appery.io/documentat...

  2. To get access item only for creator - you should specify in create service appropriate ACL.

    For example here is a code for "acl" request parameter:

    pre

    var acl = {};

    //You should specify here your LSV witch is contains your current user id.
    var currentUserId = localStorage.getItem("currentUser");

    //Give full access for current user.
    acl[currentUserId] = {"read": true, "write": false};

    //Give access for others
    //acl["*"] = {"read": false, "write": false};

    return acl;

    /pre

    Please read more about ACL here: http://devcenter.appery.io/documentat...

    Regards.

Return to “Issues”