by eggsurplus

Control what your users can access and save time, money, and frustrations. Lock down sensitive data in SugarCRM or 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.

Free 30 day trial
Try it Now

By clicking you consent to share your profile with the developer

#2042 - Security Groups functionality not working with custom modules

Closed Bug? created by digital 8 years ago

Hi,

I am having issues with getting Security Groups working with Custom Modules.

These are the steps I use: 1. Installed Security Suite full edition 2. Created new package with Module builder. 3. Created new module called Pre-Rescues (resc_Pre_Rescues) 4. Deployed from Module builder.

Under Studio, I go to Security Groups Management and then Relationships and can see a relationship created for my module: Screen: http://mystagingsite.com.au/im1.png

When I create a new Pre-Rescue record the Security Groups panel is not there.

I have tried using the Hookup Module function but my module does not appear in there.

I have also tried following the instructions in the PDF guide (this one: https://suitecrm.com/media/kunena/attachments/20038/SecuritySuite_Documentation_2.1.pdf) to create a new relationship to security groups management module and changing the source code as per the PDF in custom/metadata. This method will display the panel on the Pre-Rescue module but will not let me save any data. Turning on error reporting shows the following errors: Screen: http://mystagingsite.com.au/im2.png Screen: http://mystagingsite.com.au/im3.png Screen: http://mystagingsite.com.au/im4.png Screen: http://mystagingsite.com.au/im5.png

I am at a loss. I do not know what to try next.

Any help please?

I am using Version 7.5.3 Sugar Version 6.5.23 (Build 1061). and SuiteCRM_7.5.3_SecuritySuite_Full-Edition_v2.9.2.zip

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    8 years ago

    Studio doesn't create the relationship between your custom module and the Security Groups panel correctly. You will need to remove that relationship (see http://redinkdesign.co/blarg/remove-sugarcrm-custom-relationship/) and then use the Hookup Tool which is found under the Admin->SecuritySuite section of admin options.

    Hope this helps!

  2. digital member avatar

    digital

    8 years ago

    Are you referring to the relationship security suite creates automatically after I create a new module in module builder?

    I have now removed the relationship I created, however, my module does not appear in the Hookup Module drop down. Screen: enter link description here

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      If SecuritySuite is creating a relationship automatically then it is the SuiteCRM code doing that. This package doesn't do that. That aside, yes, remove that relationship. Once that is removed run an Admin->Repair Relationships and then your custom module should show in the Hookup Tool.

      Sorry for the hassle!

    • digital member avatar

      digital

      8 years ago

      I'm not sure what I'm removing. The URL you posted doesn't seem to be applicable to removing the default securitygroups relationships.

    • digital member avatar

      digital

      8 years ago

      For example, this is a screenshot of my custom relationships folder Screen: im7

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      I'm not sure how that other custom relationship is being created then. It could be in the core /metadata directory or someone directly in the relationships table in the database. Best thing I can recommend is searching your entire SuiteCRM directory for "rescue" and seeing if anything that seems to pertain to the relationship pops up. Then taking it from there to remove it.

    • digital member avatar

      digital

      8 years ago

      It seems that in modules/resc_Pre_Rescues/vardefs.php this line existed:

      VardefManager::createVardef('resc_Pre_Rescues','resc_Pre_Rescues', array('basic','assignable','person', 'security_groups'));

      I removed 'security_groups' and then rebuilt the relationships and then my module became available in the Hookup Module tool.

      Looks like it's working now.

      Thanks!

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      8 years ago

      Fantastic! Great find. Hopefully this helps out someone else in the future.

      Going to close this out for now, but feel free to follow up as needed.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "SecuritySuite was a very good addition to our SugarCRM implementation helping to integrate different functional teams with strictly specified roles."

    Read More Reviews