• 1242
  • More

Group Administration

I am experiencing a problem with Group Administration. 

The Group founder can Manage Members - To Admins; From Admins and Delete 

Members that get elevated to Admins can not fully manage members as the button for - To Admins and From Admins is missing. 

Can anyone let me know how to enable this button for All Admins?

😲 1
Replies (6)
    • Can Anyone help with this? Andrew Boon LeonidS Alex T⚜️

      • i have checked this the only way to get that same functionality is to set edit groups on any of the effected profiles but that should not be as then anyone within that user membership level can then edit every group even without being an admin this needs addressed Andrew Boon LeonidS Alex T⚜️

        • It would be immensely helpful if this could be fixed today. Our members are on the site for the groups, managing people in each group is extremely important. Each set of groups has one Administrator for the Set, the Admin then adds in leaders to the group who's roll it is to manage group members and posts, as well as appoint other leaders. Some groups can have upto 5 Admins, they are need the functionality to behave like admins.

          Andrew Boon LeonidS Mark Purser Alex T⚜️ Will Monte Alexey   ls there any chance of a quick workaround/patch here?

          • We do this intentionally, only group creator can appoint admins, for security reasons. It can be easily changed by very small modification, but we strictly don't recommend any modification and on UNA Cloud sites it isn't allowed.

            In modules/base/groups/classes/BxBaseModGroupsModule.php file, the following code:

                public function checkAllowedManageAdmins ($mixedDataEntry, $isPerformAction = false)
                {
                    if (is_array($mixedDataEntry)) {
                        $aDataEntry = $mixedDataEntry;
                    }
                    else {
                        $oGroupProfile = BxDolProfile::getInstance((int)$mixedDataEntry);
                        $aDataEntry = $oGroupProfile && $this->getName() == $oGroupProfile->getModule() ? $this->_oDb->getContentInfoById($oGroupProfile->getContentId()) : array();
                    }
            
            
                    return parent::checkAllowedEdit ($aDataEntry, $isPerformAction);
                }

            need to be modified to:

                public function checkAllowedManageAdmins ($mixedDataEntry, $isPerformAction = false)
                {
                    if (is_array($mixedDataEntry)) {
                        $aDataEntry = $mixedDataEntry;
                    }
                    else {
                        $oGroupProfile = BxDolProfile::getInstance((int)$mixedDataEntry);
                        $aDataEntry = $oGroupProfile && $this->getName() == $oGroupProfile->getModule() ? $this->_oDb->getContentInfoById($oGroupProfile->getContentId()) : array();
                    }
            
            
                    return self::checkAllowedEdit ($aDataEntry, $isPerformAction);
                }
            • Thank you Alex T⚜️ this worked and is just what we needed.

              • InPage This will probably be overwritten with some updates so you may want to keep this modification handy to reapply if there is an update that affects it.

                Not logged in users can't 'Comments Post'.