[Typo3-dev] locking/defaulting FE users to edit only their own data

Martin Kutschker Martin.T.Kutschker at blackbox.net
Tue Sep 2 14:58:59 CEST 2003


Hi!

I use the feuser_admin extension and I want to lock the users to their own records. Basically I want to skip the listing of all possible records of the "edit" command.

If found this idea on a list (untested by me), which changes fe_adminLib.inc/init() adding a new configuration option:

if ($GLOBALS["TSFE"]->loginUser and $this->conf["create."]["editOnLogin"] and $this->cmd == "") {
$this->cmd = "edit";
$this->recUid = (string)$GLOBALS["TSFE"]->fe_user->user["uid"];
}

And I've used this variation of the intended functionality for my site. I simply add a new marker to be used in the CREATE_USER_LOGIN template section (redirect to YOUR data, not an overview):

if ($GLOBALS["TSFE"]->loginUser) {
$this->markerArray["###FEUSER_ID###"]=$GLOBALS["TSFE"]->fe_user->user["uid"];
}

Both changes should probably be surrounded by another check:
$this->theTable == "fe_user"

Questions:

Do the changes make sense?
Is there any chance they'll make it into the core?
Is this the right place to ask for this?

Kind regards,
Masi 





More information about the TYPO3-dev mailing list