Question

Photo of Knolly Shadrache

0

How to lock Person Picker and Group Role on Group Toolbox?

I notice that on the internal site a small group member cannot be changed once assigned to a group. The person picker is disabled.

But for the same group, the Group Toolbox on the external site does the opposite. The person picker is enabled?!


Anyone know how to get the group toolbox to do the same thing please?


We are evaluating Rock to replace our in house built effort.


Any advice would be greatly appreciated please. Thanks

  • Photo of Michael Garrison

    0

    Several people agree this is surely a bug, so I've put in a proposed fix that you can track here: https://github.com/SparkDevNetwork/Rock/pull/2240/

    Let us know whether you need something before a fix may come in a future update. Even if this specific fix isn't accepted, you can track the issue at https://github.com/SparkDevNetwork/Rock/issues/2238 to see when it gets fixed

  • Photo of Michael Garrison

    0

    On the internal site, I think you're looking at the "Group Member Detail" page. In this block, the person can't be changed - I assume it's because it's a record of how the person is connected to the group.

    On the external site, the group toolbox page uses the "Group Detail Lava" block, and uses the stock lava routine stored in /Assets/Lava/GroupDetail.lava . I'm actually not sure why that permits the person to be edited- I did confirm that changing the name removes the person who was in the group, and replaces them with the person you pick.



    To answer your question, there are several options:

    1) Edit the lava from the file to remove the person picker - my guess is on this block, that wouldn't be trivial though.

    2) Hide or remove the "Group Detail Lava" block and add the "Group Member Block" in it's place - that way it will work exactly like the internal site page you're looking at.

    3) Use the Pre/Post HTML boxes in the Group Detail Lava block to put some javascript/html on the page which functionally disables the person picker.


    Let me know if any of these options sounds good and I can give you some more details. In the meantime I'll ask around about the intent of the person picker in the group toolbox.


    Edit: I don't see the codes defining the "Edit Group Member" screen in the lava file, so editing the lava may not be a possibility after all. Someone may be able to speak to whether there are security options we can set on the groups to disable editing the members though... at the most rudimentary, you can always set a "deny edit" permission for everyone on that one block, forcing your staff to go back to the internal site to edit the group membership

  • Photo of Knolly Shadrache

    0

    Wow Michael, what a great response!. Really helpful.

    As we want people on the external site to be able to update some group member attributes but not all, your proposed bug fix looks like the best option.

    Would be great if the fix is accepted. I'll keep a look out as you suggest.


    Thank you so much

    • Michael Garrison

      Great. If you'd like to implement the fix yourself (and have access to the Rock files on your server), I can help you do that - just be aware that until such time as (or if) the fix gets pulled in and included in an update, you may have to re-do the fix after each update as the file we modify may get overwritten.

  • Photo of Knolly Shadrache

    0

    I'm working hard on the proof of concept and so far everything I've attempted to implement with Rock has been incredibly straight forward to do. Hope to go live before the year is out depending on priorities in the org, and start making our own contributions to this great project!!


    Really appreciating the support