Hi and thank you for a great module. I am very impressed by the usability of the module. During the setup of the module, I noticed the permissions were not behaving as supposted:
I cannot get the 'access forum' permission to work. I want this permission to be assigned to authenticated users, but it gives me access denied. However, if I provide the authenticated user role access to 'administer forum', they do get both forum access and the ability to administer the forum?!
In summary:
Access forum: Does not work.
Administer forum: Gives both access and administer access.
Please advice
access forum
print drupal_render($form['permission']['administer forum']); administer forum
print drupal_render($form['permission']['post new threads/posts']); post new threads/posts
Comments
Comment #1
daniel.hunt commentedBelieve me, they work as they're supposed to :)
Odds are you're just not using them correctly! :p
With UIEForum, there are 3 security systems you have to understand:
It's a relatively simple system, but one that looks ever so complicated the first time you glance at it!
Good luck
Comment #2
btully commentedi still have no idea what is going on here and i'm starting to wonder if perhaps there is a language barrier.
to have a setting called "access forums" and having it checked results in an access denied does just not makse sense.
can someone please put together some instructions in simple English that make sense?
i'm reallly at a loss as to why I have to give a user admin forum access controls in order to see/use forums.
please... some help here would be greatly appreciated
Comment #3
btully commentedunder authenticated user i have the checkbox for "access forum" and "post new threads/post" accesss set to checked. yet auth users can NOT access forums. what gives?
Comment #4
daniel.hunt commentedThe access system really is incredibly simple when you think about it logically.
/admin/content/forum/edit/forum/1 -> Edit the forum you want to allow users to access, and tick the boxes for "access forum", "post new threads/posts" and "administer forum"
Off the top of my head, that should be enough to enable what you want to enable. If its not, I'll go through a clean install of Drupal later on and figure it out for you once and for all.
As far as private forums go - you need to create your UIEForum Security Group first. Then apply that security group to the forum in question (edit the forum, tick the box)
Then Drupal, create the role for users that you want to access this new Security Group, and once created, apply that role, in the Drupal admin-access-control page, to the new Security Group.
Then all you need do is add users to the new role that you've created, and they can access the Forum.
If I've left anything out, let me know and I'll post back again
Comment #5
DTKBigDawg commented2. But is simply not enough for UIEForum, as the module needs to be able to restrict groups of users from individual forums. In order to allow this to happen, I've implemented a whitelist system. If you're not on the list, you're not getting in.
/admin/content/forum/edit/forum/1 -> Edit the forum you want to allow users to access, and tick the boxes for "access forum", "post new threads/posts" and "administer forum"
Zoro, thanks for the help, but I am still confused. Following that path (/admin/content/forum/edit/forum/1) and clicking on either the parent or underlying forums, the options to edit are as follows: MISC, PATH, RANKS, POST CREATION, POST REPORTING, FILTERS and PERFORMANCE OPTIONS. None that I can see where I can edit access control. Additionally, you note ticking "administer forum" and this is not an option that I want to give my users.
I'm sorry to have to keep pestering, but I feel like I'm missing something. This forum module is the best I've seen and I'm dieing to make it live so any help is appreciated!
Comment #6
btully commentedzoro thanks a bunch for your detailed response.
unfortunately those are the exact settings I have set.
I have a main Forums root forum with 2 forums "Announcements" and "General Discussion"
for the root Forum, the access control is set to all 3 checked
x Access for group: 'access forum'
x Access for group: 'post new threads/posts'
x Access for group: 'administer forum'
in my Access Control user settings I have several roles (including authenticated users) who have "access forum" and "post new threads/posts" permissions checked. However they cannot access forum. Only those with "administer forum" can access.
Not sure if it's related, but my "Announcements" and "General Discussion" forums both say "No Access Controls to add for this forum" when i view the Access Control fieldset.
I have deleted both forums and re-added them only to get same result.
So again, the bug/issue is that only users with "administer forum" access can acccess the forum.
Any help would be greatly appreciated! :)
Comment #7
storbaek commentedComment to post #1.
Thanks for the clarity and overview of the permission structure. I was missing the configuration of access control per forum. I assumed that the user drupal permission/group control would kick in for all forums. Thanks again.
A side question. The forum does not utilize Drupals node system. Does that have any performance issues or scalability issues. I know that the forum is used on Unreal.ie, but how many posts do they have an what if you multiply that by 10.
Comment #8
Imago commentedposted as new issue...
Comment #9
btully commentedbumpity bump. i see references to access control per forum, but like I stated above, only my parent forum allows me to specify access control, the child forums access controls are blank. any idea why this is so? still can't figure out why authenticated users cannot access forum without also having administer forum access.
Comment #10
Dominion commentedHorray, I got it to work!
Trying to clarify, there are two levels where you must enable access control for 'access forum', 'post new threads/posts', and 'administer forum'. One is administer -> user management -> access control. The other is when you are creating a new individual forum, there is a set of options called access control as well. Or you can go to the UIeforum module admin and edit existing forums to enable the access control.
Comment #11
btully commentedDominion - unfortunately I've done that. The issues I still cannot get around are:
1. For a user to access forum they need "administer forum" perms set in admin->user management->access control
2. When I create a new forum, I am able to see the "Access Control" fieldset and checkboxes in the forum edit screen. However after setting these correctly and later going back to edit the forum, the "Access Control" fieldset contains no checkboxes and instead states:
"No Access Controls to add for this forum"
I have uninstalled / reinstalled UIEForum at least 6 times now, and there definitely seems to be a bug with permissions as well as the "You must enter a thread title / You must enter a thread body" issue that is prevalent in this issue queue.
I have uieforum installed in sites/all/modules so I'm still at a loss as to why this is so difficult to get working. Perhaps there is an older version that works more reliably? If so, how would I access the working copy?
many thanks in advance!
Comment #12
Dominion commentedI am using the latest for 5.x which was released on Dec. 14. I guess not everyone had the same problem I did. I'm sorry I couldn't be of more help.
Comment #13
funkeyrandy commentedany solutions on this? forum cannot be accessed by anonymous users. ..only when admininster forums is on, which i dont want Anonymous users to do!
please help...ive been thru all the proposed solutions above... esp posts #6 and #11
this is critical to this module!
Comment #14
daniel.hunt commentedGuys, I've just installed a clean Drupal 5, and a clean UIEForum, and the only thing I had to do to allow normal users to access the forum, was to go to Administer -> User Management -> Access Control, and granted access to the setting "access forum" for the roles "anonymous user" and "authenticated user"
Seriously - what on earth are you guys doing differently? :)
Comment #15
funkeyrandy commentedare you using your newly posted code? we are using the version before that.
Comment #16
daniel.hunt commentedYup, newly posted
Comment #17
daniel.hunt commentedTry updating your code to the latest dev version, and testing it again! :)
Daniel
Comment #18
Imago commentedediting the title of the issue
Comment #19
daniel.hunt commentedthanks ;)
Is this working now?!
Comment #20
atuyo60 commentedWhen a user does not have access forum permission but has post thread/posts permission, he would still be allowed to see and post in a forum that only has access forum permission.
This is a small problem but I think it should be noted as access forum and post permissions seem to be interchangeable.
Also shouldn't post thread/posts and administer forums not be considered a group and be removed from the access control section of the add/edit forum page since these permissions will work forum-wide even if we do not select them in the forum?
Comment #21
daniel.hunt commentedSorry - are you saying that users that do _not_ have access to a forum, can still get into it?
Comment #22
atuyo60 commentedYes, if a user only has post permission he can still access the forum.
oh and how do you create moderators per forum? Administer forum allows access to all forums right?
Comment #23
daniel.hunt commentedI think you may have your access rights setup incorrectly - the security system works perfectly well for us on unreal.ie using the latest codebase ...
And if you want to add moderators, you have to add the uieforum security group:
moderate forum_ID_forumWhere "ID" is the id of the forum in question.
I'm looking into making this easier to do - don't worry :)
Comment #24
daniel.hunt commentedThe access control system should be working fine now. Sorry for the delay in getting back to you.
Daniel
Comment #25
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.