Give common user (non-admin) admin rights to install extensions or edit users

Sometimes you need to give a common user some admin rights but without to set the flag admin (named admin-flag or admin-only). As there is no extension which could help, you must edit some core files.

Be sure to make a backup before and after the changes – be sure that after an update of the TYPO3 core your changes are gone.

Edit the file /typo3/mod/tools/conf.php. Change

$MCONF['access']='admin';

to

$MCONF['access']='user,group';

Now you can see in the configuration of this user group in the tab “Access Lists” below the part “Modules” the item “Admin tools”.

To see some sub-items you must change their conf files to and later assign the rights to the special user group in the configuration of that group.

To see “log” you should change the file /typo3/sysext/belog/mod/conf.php. Change

$MCONF['access']='admin';

to

$MCONF['access']='user,group';

To see “User Admin” you change in the file /typo3/sysext/beuser/mod/conf.php

$MCONF['access']='admin';

to

$MCONF['access']='user,group';

To see “Templates” edit typo3/ext/tstemplate/ts/conf.php

$MCONF['access']='admin';

to

$MCONF['access']='user,group';

That a common user can save changes to templates you ought to change also in the file typo3/sysext/cms/ext_tables.php in the part $TCA[‘sys_template’]

'adminOnly' => 1,

to

'adminOnly' => 0,

To see “Ext Manager” change /typo3/mod/tools/em/conf.php

$MCONF['access']='admin';

to

$MCONF['access']='user,group';

Later go to the tab “Options” and write in the text area below “TSconfig”

options.clearCache.pages = 1 
options.clearCache.all = 1

so the users of this user group has the ability to clear the cache.

And gave the user groups rights to edit all pages in “Web” and “Access”.

Don’t forget two things: add the wanted rights to this user group and delete the cache.

This entry was posted in TYPO3 and tagged , on by .

About Erdal Gök

Erdal Gök is a web consultant. He works since 1996 as a webworker and is self-employed since 2004. His main skills starts from building concepts for web-projects over designing and implemanting web-frameworks like TYPO3 or creating frontend templates on HTML / CSS or getting interactivity with Javascript.

4 thoughts on “Give common user (non-admin) admin rights to install extensions or edit users

  1. Soren Malling

    You can not expect anything to work, just because of these changes.

    Several others check can be done in the core, to see if the submitting user really is an admin user, when ex. installing extensions IIRC.

  2. Erdal

    Thanks for your feedback, Soren.

    Really? I did it yesterday and could update an extension as a common user. I didn’t tried more, but in one case I have an user which will hopefully test this extended configuration. will see.

  3. Erdal

    Zak, I think when I done and wrote this it was on TYPO3 version 4.5. So, many things changed.
    Don’t forget, this was only an experiamental attempt. Most changes will disappear with core update.
    But the cache option should have worked?

Leave a Reply

Your email address will not be published. Required fields are marked *