[TYPO3-dev] enhanced user-access?

Steffen Müller typo3 at t3node.com
Mon Sep 8 12:51:51 CEST 2008


Hi.

On 07.09.2008 17:13 bernd wilke wrote:
> 
> As far as I see I have to duplicate the pages/content once for
> 	'hide at login'
> and once for
> 	'group1' or 'group2'
> as each time I select 'hide at login' all groups are deselected.
> 'hide at login' = 'show at no login'
> 


This works for me:
You could declare "Hide at login" as NOT exclusive.
I did not check the controller for any side effects.


diff -ru typo3_src-4.2.1/typo3/sysext/cms/ext_tables.php
typo3_src-4.2.1.new/typo3/sysext/cms/ext_tables.php
--- typo3_src-4.2.1/typo3/sysext/cms/ext_tables.php	2008-06-11
10:15:12.000000000 +0200
+++ typo3_src-4.2.1.new/typo3/sysext/cms/ext_tables.php	2008-09-08
12:44:10.000000000 +0200
@@ -165,7 +165,7 @@
 					array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
 					array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--')
 				),
-				'exclusiveKeys' => '-1,-2',
+				'exclusiveKeys' => '-2',
 				'foreign_table' => 'fe_groups',
 			)
 		),
@@ -821,4 +821,4 @@
 	)
 );

diff -ru typo3_src-4.2.1/typo3/sysext/cms/tbl_tt_content.php
typo3_src-4.2.1.new/typo3/sysext/cms/tbl_tt_content.php
--- typo3_src-4.2.1/typo3/sysext/cms/tbl_tt_content.php	2008-06-11
10:15:12.000000000 +0200
+++ typo3_src-4.2.1.new/typo3/sysext/cms/tbl_tt_content.php	2008-09-08
12:42:55.000000000 +0200
@@ -123,7 +123,7 @@
 					Array('LLL:EXT:lang/locallang_general.php:LGL.any_login', -2),
 					Array('LLL:EXT:lang/locallang_general.php:LGL.usergroups', '--div--')
 				),
-				'exclusiveKeys' => '-1,-2',
+				'exclusiveKeys' => '-2',
 				'foreign_table' => 'fe_groups'
 			)
 		),
@@ -1115,4 +1115,4 @@
 );

-- 
cheers,
Steffen

http://www.t3node.com/




More information about the TYPO3-dev mailing list