Forums where (logged in) users are not allowed to post

Author Message

Trond Hjelmaas

Sunday 29 May 2005 6:50:45 am

Hi,

I installed eZ 3.5.0 with most of the templates for the plain site, including the one for forum.

I have previously tried the forum with different registered (dummy) users, and it worked perfectly.

Then I made a section called let's say "Cool forum" and assigned the folder "Forum" to it (as I normally do to use section when creating override templates). In roles and policies I added the anonymous role to the Cool forum section. <b>Now a logged in (guest) user cannot access the forum anymore!</b> So I deleted the Cool forum section and a logged in user can still not access the forum.

Any ideas how I can get the forum to act like normal (with permission)?

Thanks in advance! Help much appreciated :)

kracker (the)

Sunday 29 May 2005 12:25:48 pm

Trond,

FYI, it would be much more simpler if you had posted the user's role permissions (currently assigned). <i>Still</i>, props for writing a thorough message.

The key here (I think), is that it doesn't mater per say what section you have assigned to the forum as much as it does matter which role permissions are associated with your user/group (having the problem).

Take a look at the admin's default forum user's role permissions (uri, /role/view/4 ) <i>http://admindevel.ezpublish.no/role/view/4</i>

<b>Example: Forum user [Role]</b>

content  	 create  	 Class( Forum topic ) , Section( Standard ) , ParentClass( Forum )
content 	edit 	Class( Forum topic ) , Section( Standard )
content 	create 	Class( Forum reply ) , Section( Standard ) , ParentClass( Forum topic )
content 	edit 	Class( Forum reply ) , Section( Standard )
content 	versionread 	Class( Forum topic , Forum reply ) , Section( Standard ) , Owner( Self ) , Status( Draft , Pending )
user 	selfedit 	No limitations
user 	password 	No limitations
notification 	use 	No limitations

I would make sure you are basing your permissions on these as they do work, you may also possibly have conflicting permissions assigned.

go get em,
//kracker

sole : every single one of us
sole : locus farm
(<i>with inference on the closing arguments</i>)

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Trond Hjelmaas

Sunday 29 May 2005 1:57:53 pm

kracker,

thanks for your input! I had a look at the role/policies and they look identical to what you posted:

content  	 create  	 Class( Forum topic ) , Section( Standard ) , ParentClass( Forum )
content 	edit 	Class( Forum topic ) , Section( Standard )
content 	create 	Class( Forum reply ) , Section( Standard ) , ParentClass( Forum topic )
content 	edit 	Class( Forum reply ) , Section( Standard )
content 	versionread 	Class( Forum topic , Forum reply ) , Section( Standard ) , Owner( Self ) , Status( Draft , Pending )
user 	selfedit 	No limitations
user 	password 	No limitations
notification 	use 	No limitations

You said that it does matter what section I have assigned the forum to... However, I got a warning message when I deleted the section "Cool forum" saying that it may affect the access permissions, template etc. Could it be that in some cases the deletion of the section actually can affect the permission...?

Any more ideas what to check/do?

Thanks again :P

kracker (the)

Sunday 29 May 2005 2:21:43 pm

Ahh, ya caught me :)

What I meant to say was that you can assign any section (standard, trond_forum_members, etc) but that the most important part is that your forum user has permissions needed to read/edit/etc, the key is the permissions.

Since it seems your forum_user role permissions are ok for the section "Standard", go a head and asign the forum to use the "Standard" Section (check your assignments).

The next level is to check your user / group ... Role Assignments. Make sure that your user's group is associated with the forum_user role.

<b>Questions:</b>

- What group(s) is your (dummy) user in?
- Is that group associated with your forum_user role? (be sure to check, the default is no (I believe))
- Does your role have at least read permissions for section trond_forum_members or Standard ?

I think I had to hammer my head into a stud for a while to get this as well so don't let it get ya down ;)

//kracker

<i>Beastie Boys : Hello Nasty : Super Disco Breakin'</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Trond Hjelmaas

Monday 30 May 2005 10:54:46 am

kracker,

thanks for still helping me :) I'll answer your questions in <b>bold</b>. Please note that I have deleted the "Cool forum" section.

What I meant to say was that you can assign any section (standard, trond_forum_members, etc) but that the most important part is that your forum user has permissions needed to read/edit/etc, the key is the permissions.

Since it seems your forum_user role permissions are ok for the section "Standard", go a head and asign the forum to use the "Standard" Section (check your assignments).
<b>?Not sure how to do this.. However, I looked at section named "standard" and it has "Forum user" listed in its "Roles list". BUT, at the buttom of the standard section it lists "Objects within this section" and there are plenty of objects there, but noen belonging to the Forum(!)</b>

The next level is to check your user / group ... Role Assignments. Make sure that your user's group is associated with the forum_user role.
<b>My user group "Guest accounts" has "Forum user" listed in "Assigned Roles".</b>

Questions:

- What group(s) is your (dummy) user in?
<b>They are under "Guest accounts" (that is where they all pop up when registering new users).</b>

- Is that group associated with your forum_user role? (be sure to check, the default is no (I believe))
<b>"Guest accounts" has "forum user" listed as "Assigned Roles"</b>

- Does your role have at least read permissions for section trond_forum_members or Standard
<b>What do you mean by "your(my) role" (isn't trond_forum_members" a group and not a section?).</b>

<b>Referring to your last question, I think there is no connection between the folder "Forum" and the role "Forum user". Could that be the problem?</b>

I think I had to hammer my head into a stud for a while to get this as well so don't let it get ya down ;)

//kracker

kracker (the)

Monday 30 May 2005 11:58:05 am

errr... yeah, well, no worries.

Unfortunately your confusion on the terminology is starting to get the best of me.

1. Sections are assigned to nodes in the content structure. An to my knowledge not users, groups or roles.

See: Admin >> Setup >> Sections
http://admindevel.ezpublish.no/section/list

Select Standard, navigate to the desired forum, select it and apply the "Standard" Section to it.

2. Admin >> User Accounts >> Access Controls : Roles and policies >> Forum user Assign Role (Icon) >> Browse to the list containing the Guest Group >> Select the ratio button for Guest Group, Click ok.

3. I was previously inferring that you might be using a custom section called "trond_forum_members" which I thought would have been assigned to your forum, NOT a user group. This is unnecessarily complex for the forums so we'll skip it.

The only connection between the folder forum and the role forum user would be in the forum user role permissions and the section also mentioned in the permissions.

Sorry I could not be of more help :|

//kracker
<i>Counting Crows : A Murder of One</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Trond Hjelmaas

Thursday 02 June 2005 12:00:25 am

Hi,

adding the standard section to the "Forum" did the trick. I didn't pick up before today that a section can have multiple members, so that helps.

Hint to others:
I also had to change the roles and policies. A logged in user could change *any* posting, so I had to add "self" to two of the edit "rules"

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.