Forums / Setup & design / Restrict Access Based on Section

Restrict Access Based on Section

Author Message

Willie Seabrook

Sunday 10 August 2003 12:28:13 am

Hi,

Making progress setting up my new ezpublish site.... I've searched the docs and wiki for info on access restriction but can't find what I need.

How do I set up ezpublish so I can assign permissions per section? Ie. I want any users with the role "trader" to be able to access the "trading" section of the website and so on.

How do assign permissions in this sort of way - per section, or a functional equivalent?

Also, when I have new users sign up to my site I want them to be assigned roles based on how much they pay etc... ie my own logic, so how do I access the api's to do this? Do I even need to access the api's?

Kind Regards,
Willie Seabrook

Oliver Dissars

Monday 11 August 2003 12:43:42 am

Hi,

I had / have the same problem.

So far I understood is the basic way the following:

- make in the Setup a section
- assign a node (folder) to these section
- make a role with permissions / limitations
- add users / user group to these role

Voila - now should the access to your sections be limited by these rule set.

My problem is, that I don't manage to generate a proper set of permissions to limit read access for a folder with a login for the defined users.

I read everything about this issue I found and my understanding is, that these permission / login system is part of eZ, but I can't use it.

If you get an hint, let me know.

Best Regards,
Oliver

Willie Seabrook

Monday 11 August 2003 7:05:19 pm

Well want I'm having trouble with the code to verify someone. This is what I need to do in pseudo:

if(user is allowed to see section 8)
do nothing
else
redirect to login page if not logged in
else
display access denied if logged in and no access allowed.

Is this all handled in the index.php anyway? I'm really stuck here and I can't find *any* docs on the subject. Could someone direct us please?

Regards,
Willie

Oliver Dissars

Tuesday 12 August 2003 1:37:28 am

So far I understood should the behaviour you described handled by eZ. I'am wrong?

Regards,
Oliver