Path

ez projects / extract / forum / general / permission problem sollution / re: permission problem soll...


permission problem sollution

You need to be logged in to post messages in the forums. New users may register here.

Mavko Žmak

Member since:
29 June 2004

Posts: 52

Tuesday 27 October 2009 7:00:57 pm

If someone has permission problems with this extension (I had in eZ 4.1.3), one sollution is setting:

[RoleSettings]
PolicyOmitList[]=extract/csv

in site.ini.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Up

Geoff Bentley

Member since:
08 December 2007

Posts: 46

Tuesday 27 October 2009 8:58:58 pm

What exactly was the problem?
Up

Mavko Žmak

Member since:
29 June 2004

Posts: 52

Wednesday 28 October 2009 7:23:11 am

This was the problem:

I have downloaded and installed your extract eZ extension (latest stable version), setup ini settings and regenerated autoloads. But when I go to the "Export" tab (extract/csv), I get permission denied message.

In the debug info I get this messages:




Error: error/view.php


 

Oct 21 2009 23:15:22


 

Error ocurred using URI: /dev/extract/csv


 

Warning: Insufficient permissions


        


Oct 21 2009 23:15:22


Function required:


 Module : extract


 Function : 

 ClassID : 

 MainNodeID : 

Policies that didn't match:





I'm doing this from my admin account that has all access. I'm using eZ 4.1.3.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Up

Russell Michell

Member since:
07 April 2008

Posts: 15

Wednesday 31 March 2010 1:51:50 am

This worked for me too (eZ 4.1.3) added this to extension/extract/site.ini.append:




[RoleSettings]


PolicyOmitList[]=extract/csv




Would be good to ensure the admin user has permissions to use it out of the box. If I have time, I'll investigate...

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Up

Massimiliano Collavo

Member since:
16 July 2008

Posts: 3

Tuesday 05 April 2011 10:06:09 pm

I have the same problem.
But this is not a good idea because it gives full acces to anyone in the frontend.

Is there some other solution?

thanks Maxi
Up

Massimiliano Collavo

Member since:
16 July 2008

Posts: 3

Tuesday 05 April 2011 10:24:02 pm

This worked for me too eZ 4.3.0



extension/extract/settings/module.ini.append



add



ModuleList[]=extract



Up

Mavko Žmak

Member since:
29 June 2004

Posts: 52

Wednesday 06 April 2011 10:52:41 am

Yes Maxi, later I found too about this ini setting, but forgot completely about this forum thread.

Here's some explanation...

The ModuleList setting is used when checking users access permissions (generateAccessArray() function of eZUser class), so if a module name is not present in this setting it won't be available to any user, even to the admin user that has all permissions.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Up

Sujith Kumar -

Member since:
21 September 2012

Posts: 1

Thursday 31 January 2013 4:11:05 pm

Perfect

this ROCKs

[RoleSettings]
PolicyOmitList[]=module/view

The fear of the LORD is the beginning of wisdom (Proverbs 9:10)

Up

You need to be logged in to post messages in the forums. New users may register here.