kumarsivarajan / mollify

Automatically exported from code.google.com/p/mollify
0 stars 0 forks source link

Adding User to Group usign ExternalInterface #559

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Would it be possible to add a user to a group. This allows whne the user is 
created eternally to link it to a group (which is linked to certain folders. 
Something like:-

addUserToGroup($userId, $groupId)

Original issue reported on code.google.com by syxthsen...@gmail.com on 15 Jul 2014 at 8:15

GoogleCodeExporter commented 8 years ago
Actually figured this out; if you add to the MollifyExternalInterface.class.php 
the following:-
        public function addUserToGroup($userId, $groupId) {
            $groupIds = array($groupId);
            return $this->configuration->addUsersGroups($userId, $groupIds);
        }

Then you can associate UuserId to a User group by command
 $mollify->addUserToGroup($userId, $userGroup);

Original comment by syxthsen...@gmail.com on 15 Jul 2014 at 8:41

GoogleCodeExporter commented 8 years ago
Yes, this is how you can add features to the interface. I've added this and 
will be in next release.

Original comment by samuli.j...@gmail.com on 30 Jul 2014 at 6:02

GoogleCodeExporter commented 8 years ago
In 2.5.13

Original comment by samuli.j...@gmail.com on 8 Aug 2014 at 8:22