[Typo3] TSConfig: change BE usergroup on the fly

Yomo Guiamo yguiamo at gmail.com
Thu May 12 12:30:57 CEST 2005


Hello,

I'm trying to do the following:

I have a user Christine (uid=4) who is member of the groups Author 
(groupid=7) and Editor (groupid=4).
The group Editor has more rights than the group Author, actually it's an 
  extended version of the group Author.

For a certain page (pageid: 115) where Christine has a DBmount to I want 
to change the group membership of Christine (from Editor to Author), 
because I want to change certain values in her Accesslist.  Instead of 
addressing each single access item, I just want to change the groups she 
belongs to for that particular page, because that fixes the access list 
settings at once.

I've tried various ways and I think it should be resolved via TSConfig. 
This is what I have so far. I've tried 2 scenario's.

Scenario 1
==========
Work with Page TSConfig (on the page with id:115).
On the page with id:115, check if the user=Christine. If so, make her a 
member of the group Author only(!) instead of both Author and Editor.

[globalVar = BE_user:user:uid = 4]
   TCAdefaults.be_users.usergroup = 7
   # just in case this needs to be updated as well
   TCAdefaults.be_users.usergroup_cached_list = 7
[end]

Unfortunately, this doesn't work if I login as user Christine. I still 
have the rights of the group Editor on this specific page id:115.

Scenario 2
==========
Work with User TSConfig (of the user itself with uid:4).
If the user hits page with id:115, make her a member of the group Author 
only instead of both groups Author and Editor.

[globalVar GP:id=115]
    TCAdefaults.be_users.usergroup = 7
   # just in case this needs to be updated as well
   TCAdefaults.be_users.usergroup_cached_list = 7
[end]

This doesn't work either. I don't know if it's the syntax of my TSConfig 
or that my concept isn't the way it should be.

All suggestions are welcome!

Thank you,
Yomo Guiamo



More information about the TYPO3-english mailing list