I want to be able to extend the system but for the content modules read permissions to be honoured. It struck me that because the permissions are module based I would have to extend the existing content module to use these permissions. I cannot just add a module extension as this would be a new module and have it's own set of permissions.
Is there any way to "import" the content modules limitation list into my new module. I really really really don't want to modify the core distributiuon if at all possible.
I ended up importing the policies for content, read with the following code (from index.php)
// Import the permissions for the content module as that these can be honoured
include_once( "kernel/classes/datatypes/ezuser/ezuser.php" );
$currentUser =& eZUser::currentUser();
$accessResult = $currentUser->hasAccessTo( 'content' , 'read' );
$params['Limitation'] =& $accessResult['policies'];
$GLOBALS['ezpolicylimitation_list'] =& $params['Limitation'];