As of April 12th, you must go to Progress SupportLink to create new support cases or to access existing cases. Please, bookmark the SupportLink URL and use the new portal to contact the support team.
Thanks,
Pranav
Thinking further on this, is there any way of editing an entities _acl on a postsave collection hook? For my sites collection I have a postsave hook that creates a new group using the id of the newly created site then tries to retrieve this newly created entity to modify the acl. However the collectionaccess call gives null.
function onPostSave(request, response, modules) { var logger = modules.logger; //logger.info(response.body._id); var context = modules.backendContext; var uri = 'https://' + request.headers.host + '/group/'+ context.getAppKey(); var authString = "Basic " + modules.utils.base64.encode(context.getAppKey() + ":" + context.getMasterSecret()); var requestOptions = { uri: uri, headers: { "Authorization": authString }, json:true, body: { "_id": response.body._id, "users": { "all": "false", "list": [ { "_type": "KinveyRef", "_collection": "user", "_id": response.body._acl.creator } ] }, "_acl": response.body._acl } }; logger.info(requestOptions); //POST to GROUP endpoint modules.request.post(requestOptions, function(error, res, body) { if (error) { logger.error(error.message); response.body = {error: error.message}; response.complete(434); } else { logger.info("Group created, retrieve using id:" + response.body._id); //modify site group acl modules.collectionAccess.collection('sites').findOne({ _id: response.body._id }, function(err, result){ if(err) { logger.error("Collection access error " + err.message); response.error(); } else { logger.info("collection access for id:" + response.body._id+ " " + result); response.continue(); } }); } }); }
Pranav, I think I just need to do it similar to the acl tutorial you provide here. However I don't understand what step 5 is trying to achieve as it tries to find the patient id in the 'patient-provider' collection however there is no reference to this in that collection.
Michael Vowles
Hi,
I am looking at using user groups in my application I have the following requirements:
I was also unsure about how to implement the "user" and "admin" roles for the sites. Is it as simple as having 2 separate groups (user/admin) for each site, which then get added to the appropriate acl groups (read/write)?