I have created a role for our sales agents, but I do not want them to be able to add new customers. Corporate wants to do that. Is this possible? Thanks for the help.
I have created a role for our sales agents, but I do not want them to be able to add new customers. Corporate wants to do that. Is this possible? Thanks for the help.
Not using Roles ... unless you want to also remove their ability to edit Account details. If this is OK, then just set their permissions to list and view and restrict edit
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 MySQL 5.0.32
SalesAgility.com - SugarCRM Experts (UK)
Authors of Advanced OpenSales - Open Source Quotations, Invoices, Products and Contracts modules for SugarCRM Community Edition - Download here
Thanks Sugar Hero.
I do need them to be able to work in the Account and update it. If you think of another way to accomplish this please let me know. Thanks again.
OK ... check out this ACL
Access control at field level
Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 MySQL 5.0.32
SalesAgility.com - SugarCRM Experts (UK)
Authors of Advanced OpenSales - Open Source Quotations, Invoices, Products and Contracts modules for SugarCRM Community Edition - Download here
Sweet! many thanks.
Trying to get this to work on "Create Account". Realizing this is not a field, but a button with an action. Any words of wisdom would be greatly appreciated. Thanks.
Last edited by dblackard; 2010-03-07 at 01:53 AM.
You should need to create a custom controller for Accounts module and implement the method action_editview, in order to check if the current_user can create new Accounts.
The content of such function may looks like that:
PHP Code:function action_editview() {
$role_name = 'sales agents';
global $current_user;
$this->view = (empty($this->bean->id) && $current_user->check_role_membership($role_name, $user_id = '')) ? 'noaccess' : 'edit';
}
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Andre, thank you for your help.
I need to ask. Where would I place this PHP script? I was looking at AccountsQuickCreate.php, but I do not know for sure. And where inside the file I should drop it.
This junior sugar member appreciates you guys.
custom/modules/Accounts/controller.php
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks