[TYPO3-dev] EXT:tstemplate patch request.
Stig Nørgaard Færch
stig at 8620.dk
Wed Feb 22 08:22:10 CET 2006
Hiya.
In the conf.php file of tstemplate the following is stated:
"If this is changed so not only admin-users can manipulate templates,
there need to be done something with the constant editor that is not
allowed to 'clear the cache' then!!".
I would like special non-admins users to get access to the tstemplate
module as well. The reson is that I have several sites on one
installation, and it would be nice if my "sub-admins" could edit the
tstemplate without having full admin access.
Is tstemplate regarded as a T3Core on bugs.typo3.org?
If so should I commit the diffs to bugs.typo3.org?
Best Regards
Stig Færch
Diffs for a patch suggestion:
################ tstemplate_ceditor/ ################
--- class.tx_tstemplateceditor.php_old 2006-02-22 07:55:26.000000000 +0100
+++ class.tx_tstemplateceditor.php 2006-02-21 21:53:53.000000000 +0100
@@ -194,7 +194,7 @@
}
$theOutput.=$this->pObj->doc->spacer(10);
- $theOutput.=$this->pObj->doc->section("Cache",'Click here to <a
href="index.php?id='.$this->pObj->id.'&clear_all_cache=1"><strong>clear
all cache</strong></a>',0,1);
+
if($GLOBALS['BE_USER']->isAdmin())$theOutput.=$this->pObj->doc->section("Cache",'Click
here to <a
href="index.php?id='.$this->pObj->id.'&clear_all_cache=1"><strong>clear
all cache</strong></a>',0,1);
} else {
$theOutput.=$this->pObj->noTemplate(1);
}
################ tstemplate/ts/ ################
--- conf.php_old 2006-02-22 08:02:34.000000000 +0100
+++ conf.php 2006-02-22 08:02:45.000000000 +0100
@@ -6,6 +6,6 @@
$MLANG['default']['ll_ref']='LLL:EXT:tstemplate/ts/locallang_mod.php';
$MCONF['script']='index.php';
-$MCONF['access']='admin'; // If this is changed so not only
admin-users can manipulate templates, there need to be done something
with the constant editor that is not allowed to 'clear all cache' then!!
+$MCONF['access']='group,user';
$MCONF['name']='web_ts';
?>
\ No newline at end of file
More information about the TYPO3-dev
mailing list