var acls = SUGAR.App.user.getAcls();And then navigate away and then back to Accounts module to force a re-render. The "Create" button at the top will disappear and if you navigate into an Account record you will find the "Copy" or "Duplicate" buttons no longer appear in action dropdown.
acls.Accounts.create = 'no';
SUGAR.App.user.set("acls", acls);
App Ecosystem @ SugarCRM
Hello Everyone,
This development is work for the Mobile App ?
Because I have check this code in to my development instance but in mobile-app that is not working.
Hi Bavesh,
Current implementation of Sugar Mobile App won't support custom js like record.js, create-action.js etc.
Hello shijin Krishna,
Does any way there I can restrict record's creation using mobile app.
You would have to attempt to restrict it from Mobile REST APIs. You could update User APIs to return ACLs that restrict 'create' action for modules you do not want the user to be able to create on Mobile. Sidecar clients (like Mobile) obey a 'create' ACL that is not yet supported in backend. I haven't experimented with this yet, so I couldn't say for sure how well it would work. But what I have in mind would not require a lot of code changes.
See this blog post for example of how you can override REST API endpoints for Mobile clients. In this case, you would want to override the API that returns client side ACLs to include additional ACL rules.
Using server side changes to customize SugarCRM Mobile « Sugar Developer Blog – SugarCRM
App Ecosystem @ SugarCRM
Thanks Matt Marum let I have try with API.
Thanks Matt Marum let I have try with API.
Hey I got the solution for mobile app Disable record's creation below is the link where I have share my code.
How to restrict Account Create In to Mobile-App sugarCRM 7.* ?