Forums / Setup & design / User defined classes promting for login

User defined classes promting for login

Author Message

Nathaniel Fitzgerald-Hood

Monday 10 November 2003 11:34:42 pm

Hi,

EP v. 3.2.3

I'm creating a couple of custom classes in the admin console as Administrator called "Staff member" and "Program". When I view some objects based on these from the public part of the site (which does not require a login) these objects cause EP to prompt for a login before displaying them (either with a default view or an override).

However, if I create an instance of a predefined class (ie. an Article) in the same folder I can view it from the user side without being logged in.

(I've even tried doing exactly as in the latest update to the running HOW-TO which creates a Member class but with the same outcome )

Is there some setting somewhere which controls to a fine degree what objects require login or not? The site is divided into 3 sections for looknfeel and moving these test objects around still results in a prompt for login. I've tried clearing and totally deleting the cache also to no avail.

Thanks,

- Nathaniel

Valentin Svelland

Tuesday 11 November 2003 3:23:33 am

Did you include the new class amongst available classes for your anonymous user (roles)?

Nathaniel Fitzgerald-Hood

Tuesday 11 November 2003 3:29:27 pm

Ah, no.... and I'm afraid I have no idea where I do this. I've seen several mentions of setting roles but, in what seems like the usual style of the documentation, no explaination of HOW to do it or WHAT is actually being done.

From the docs all I get is this:

Site Access Rules
In contrary to policy omit statements, site access rules are the general instrument to prevent access to system resources.

... more to come soon ;-)

Roles, Policies and Policy Limitations
... to come soon ;-)

Also, some sort of index of documentation (more like the old SDK) would be much appreciated.

Michael Warf

Tuesday 11 November 2003 3:39:41 pm

Hey Nathaniel,

I had the same issue. You can set read access to the Anonymous user for custom classes in the "User" tab in the admin interface.

Just choose "new" for current policies and give read access to your custom class...BINGO! no need for login when viewing custom classes.

Hope this helps.
Michael

Nathaniel Fitzgerald-Hood

Tuesday 11 November 2003 4:05:44 pm

I just saw this in one of the demo sites in my installation. However, with my "real" site when I click on the users tab it shows the users list but does not select the tab or show the Users menu on the left (which has the roles link...), most frustrating.

I can get there when I copy and alter the URL as necessary. I've deleted manually every cahce I can find but this is getting really annoying. Any hints on how I can make the user tab area in admin work OK from the start?

------ UPDATE ------

Well after some digging through the code and forums I found that one should not delete the initial sections setup in admin as I did in a fit of "cleaning up"... This fixes it:

http://www.ez.no/developer/ez_publish_3/forum/install_configuration/where_are_the_roles_final_release_3

Thanks for everyone's quick replies!