by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SuiteCRM to specific groups or teams. Supports unlimited assigned users, unlimited group assignments to records, custom layouts for each group, login/sudo capabilities and much more.

Cancel at any time!
Free Trial

#2632 - I need a user can create, but not edit the records.

Closed Feature created by Etairos Business Solutions Verified Purchase 4 years ago

Hi, I have a role in which users should be able to create records, but not be able to edit them. When configuring the role, I see that removing the edition also removes the creation. Can you help me?

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    4 years ago

    Do you see a separate Create column in your role setup grid? If not, go to Admin -> Repair and run Repair Roles. This column should then appear so that you can set Create rights for a role while disabling Edit at the same time.

  2. omatorres member avatar

    Etairos Business Solutions Verified Purchase

    4 years ago

    Yes I can see a separate create and edit columns un the role setup. But if I setup the module like Create in "All" and Edit in "None" the user can't edit (as expected) but he can't create either

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      4 years ago

      A few questions:

      What module are you trying this on?

      What version of SuiteCRM are you using?

      What theme are you using?

  3. omatorres member avatar

    Etairos Business Solutions Verified Purchase

    4 years ago

    What module are you trying this on? In a custom module

    What version of SuiteCRM are you using? 7.10.20 LTS

    What theme are you using? Suite P (Day style)

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      4 years ago

      Thanks. Was the custom module built only using Module Builder or has it been customized outside of Module Builder? Does the custom module use a custom view.edit.php view? Or does it use the old EditView.php/tpl pair of files?

      If you would rather zip up the custom module directory (both in /modules and /custom/modules) and send that over I would be happy to take a look. Just email solutions AT eggsurplus DOT com

  4. omatorres member avatar

    Etairos Business Solutions Verified Purchase

    4 years ago

    The module was made only using module builder. I will send the information to your email. Thanks.

  5. eggsurplus member avatar

    eggsurplus Provider Affiliate

    4 years ago

    Thanks for your patience here. I just sent an email that includes the tweak you will need to your custom module's Menu.php.

    Cheers, Jason

  6. Davint member avatar

    Davint

    3 years ago

    Hi! I am facing exactly the same problem! I create a module on module builder + studio and when I set it to edid NONE, it does not allows users to create new records (the CREATE button disappears from the menu on top).

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      3 years ago

      Here's how to add Create support for a custom module for the module actions. Edit /modules/YOUR_MODULE/Menu.php. Look for the line that contains the edit checkAccess:

      if(ACLController::checkAccess('YOUR_MODULE', 'edit', true)){
      

      Change edit to create:

      if(ACLController::checkAccess('YOUR_MODULE', 'create', true)){
      

      If this does the trick for you, please let me know and I'll update your other support case related to this.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      3 years ago

      Davint confirmed that this addressed their issue. Closing this case out as it also resolved the original posters issue.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
  • "The add-on itself was already a must for my SuiteCRM, which was missing this very important security feature. However, what surprised me the most was ..." - Davint

    Read More Reviews