[TYPO3-mvc] setting Usergroup

Claus Due claus at wildside.dk
Tue Jan 17 10:09:40 CET 2012


Hi Johannes,

Shooting from the hip: set the "record type" of your fe_group record to Tx_Extbase_Domain_Model_FrontendUserGroup and/or make sure you have the storage page UID set ;)

Cheers,
Claus

On Jan 17, 2012, at 9:56 AM, Johannes C. Schulz - EnzephaloN IT-Solutions wrote:

> Hello typo3-community
> 
> Several problems with my new extensions are solved, some new came.
> The plan is, to add a new feuser. Now it seems to work, instead the setting
> of the usergroup. Therefor I made an instance of
> Tx_Extbase_Domain_Repository_FrontendUserGroupRepository and tried this:
> 
> $usergroup =
> $this->usergroupRepository->findByUid($this->settings['accrgroup']); //from
> constants, searching the right usergroup
> $user->setUsergroup($usergroup); //assigning.
> 
> But this throws an error, the given object is NULL and not
> Tx_Extbase_Persistence_ObjectStorage.
> How do I right?
> 
> 
> 
> Thanks
> 
> Johannes
> 
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list