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.

Cancel at any time!
Free Trial

#2556 - In SuiteCRM

Closed Bug? created by Lion Solution Verified Purchase 5 years ago

Hi, on a SuiteCRM 7.6.3 istance, i noticed that in Detail View of a custom module even logged in as admin, i can't see the SecurityGroups subpanel.
In List View i see it.

  1. eggsurplus member avatar

    eggsurplus Provider Affiliate

    5 years ago

    Is it a custom module that comes with SuiteCRM by default? Some of those modules do not use the view system of the framework and because of that the subpanel doesn't show up as it should. If you created the custom module in Module Builder, those are getting a custom securitygroups relationship added by default somehow. That needs to be removed manually and then "hooked up" to SecurityGroups using the Hookup Module tool. This may be helpful with that: http://www.ricardomalla.com/?p=996

    • MayerElyashiv member avatar

      Lion Solution Verified Purchase

      5 years ago

      Hi Jason, thanks for the link you provided me,
      it is a custom person module made with Module Builder.
      The relationship with SecuritySuite has been automatically added correctly:
      Screen Shot 10-06-16 at 02.42 PM.PNG

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      5 years ago

      It usually isn't automatically created correctly. It never does. It's a very special relationship that requires setting the relationship table to securitygroups_records. If you see that mentioned in the securitygroups_Is_insegnanti custom metadata then perhaps it is set correctly.

  2. MayerElyashiv member avatar

    Lion Solution Verified Purchase

    5 years ago

    Hi Jason, please where and what do you mean it should appear to make SecurityGroup working correctly?

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      5 years ago

      The securitygroups_Is_insegnanti needs to be deleted manually and then the relationship needs to be created correctly. The Hookup Tool does this correctly. If you are doing this manually then this thread will help on how to do that: https://suitecrm.com/forum/suitecrm-7-0-discussion/7796-applying-security-groups-to-custom-modules

    • MayerElyashiv member avatar

      Lion Solution Verified Purchase

      5 years ago

      I tried to follow them but without success,..
      I manually created: custom/metadata/ls_insegnanti_securitygroupsMetaData.php
      did a Rebuild Relationships, Repair Roles, Quick Repair
      tried to follow these instructions: http://www.ricardomalla.com/?p=996 to manually delete the relationship but there were no files to delete but the one i created lastly,

      i think the problem is that under the Studio > Security Groups > Relationships
      there is no "default" in the "SubpanelFromGruppiDiSicurezza.pngSubpanel from Security Group" field

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      5 years ago

      When you add a security group to one of the Is_insegnanti records do you then see it immediately in the securitygroups_records table? If not, can you email me your ls_insegnanti_securitygroupsMetaData.php file, please? If you can, then there is something with the view for that custom module that is causing the subpanel not to show. I've seen this with other modules that do not use the view framework, but instead use the old DetailView.php method.

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      5 years ago

      Thanks Mayer, got your attachment. If you are seeing records in securitygroups_records then the relationship is all set. I would move on an focus on why the subpanels are not showing. Does your custom module use a DetailView.php/html combo instead of view.detail.php?

  3. MayerElyashiv member avatar

    Lion Solution Verified Purchase

    5 years ago

    I send you now the zipped module

    • eggsurplus member avatar

      eggsurplus Provider Affiliate

      5 years ago

      That looks good so that then when the relationship was created the subpanel wasn't created. You will need to manually define the subpanel/layoutdefs to make it show for that custom module since Module Builder/Studio failed to create that. This is something that the Hookup Tool does in the paid-for version of SecuritySuite here.

    • MayerElyashiv member avatar

      Lion Solution Verified Purchase

      5 years ago

      Ok, thank you

  4. eggsurplus member avatar

    eggsurplus Provider Affiliate

    4 years ago

    I have confirmed that Module Builder creates this relationship automatically now. I'm adding logic to that process to ensure that the subpanel shows as well. This will be in the 2.9.5 release.

  5. MayerElyashiv member avatar

    Lion Solution Verified Purchase

    4 years ago

    Thank you very much for all your efforts

  6. eggsurplus member avatar

    eggsurplus Provider Affiliate

    4 years ago

    This is fixed for the future 2.9.5 release so that the Hookup Module tool can be used, but it will only apply to future modules built in Module Builder. To fix existing modules deployed by Module Builder:

    • Edit the vardefs.php for that module
    • Remove 'security_groups' from the VardefManager::createVardef call
    • Run Quick Repair & Rebuild a couple of times
    • Go to Admin->Hookup Module
    • Choose your module and click OK
    • Run Quick Repair & Rebuild for good measure

    It should now show the subpanel correctly.

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "I just installen limited SS on sugarcrm CE version 6.5.21 and it seems to work quite well. Have not tested a lot but it looks good." - khobo

    Read More Reviews

Keep up to date on the latest additions

We'll send you an email every month with handpicked add-ons, reviews, tricks and tips. Don't worry, we hate spam as much as you do.