ACL to allow anyone to create records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2017 09:52 AM
Hi. I have created a custom table called 'u_stolen_items' that I want to allow anyone to be able to create records on. However, because I have the High Security Settings enabled, I believe this is preventing me from having a 'blank' ACL to allow this. I have created an ACL rule for 'create' where there are no conditions, however, this doesn't work (I assume because of the aforementioned High Security Settings). I have tried using 'true;' in the Script but that also didn't work. I tried adding the 'public' rule but this also doesn't work. Does anyone have any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2017 06:24 AM
You'll need to add similar controls to the u_shoplifting_reports table.
For what it's worth, moving the filter (that restricts visibility to owners) from the ACL into an afterQuery business rule will hide that "Security Constraints" message. It's a bit more convoluted, but in the interests of information disclosure, considered better for security.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2017 09:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2017 10:09 AM
Okay.. isn't that what you wanted? Or are you saying that you want the related list read-only when appearing on this form, but read-write elsewhere?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2017 10:14 AM
I still want the records to only be accessible to the user that opened them. When I put this rule in (see below) it stops working on the form, even though the rule works on the table directly.
gs.hasRole("u_shoplifting_reports_user") || current.sys_created_by == gs.getUserName() || current.isNewRecord();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2017 01:24 AM
What happens if the records are created by unauthenticated users?
Logged in I can only see mine, but logged out I can view all anonymous records. Is this right?