Posts: 9,866
Threads: 594
Joined: Jan 2006
2009-05-04, 05:01 PM
(This post was last modified: 2009-05-04, 05:08 PM by User 2877.)
Quote:The permission string clearly states "Can View Threads" - That is it. If that is set to no, then it simply stops the user from being able to view the threads.
Yes now can you make sure the correct error displays when it does that. That's all. That's it. Nothing more.
Quote:Giving an error message stopping the user from viewing the forum would be more then the permissions given representation.
Please in your own words explain to me what error they should get. Explain to me the expected behavior when I have "Can View Threads Within a Forum" unchecked. Explain to me what error I should see if indeed a member without the permission to view the threads within a forum goes to forumdisplay.php.
In the end Ryan you will see the problem this I am sure of. Take the time to help me on this.
When people do not have permission to search the site do you allow them to search and then display a "sorry no results" page? No...you don't. Instead mybb properly displays the error_no_permission page.
Posts: 9,866
Threads: 594
Joined: Jan 2006
2009-05-04, 05:10 PM
(This post was last modified: 2009-05-04, 05:11 PM by User 2877.)
Quote:And when you uncheck that permission do you see any threads within the forum? Nope.
Correct but the message is stating that no threads or posts exist. It's a permissions issue and it needs to stated to the member.
What don't you get here? C'mon Ryan...what's the problem?
Posts: 9,866
Threads: 594
Joined: Jan 2006
2009-05-04, 05:14 PM
(This post was last modified: 2009-05-04, 05:19 PM by User 2877.)
I did change it in the meantime. That's not the point. It's a bug. Fix it. You marked it bogus. It's a bug.
You're being unreasonable. You still don't get it do you.
As a guest view this site:
http://www.ftw.net.au/index.php
See all the forums with zero posts (-) those are set to view forums but not view threads within forums.
Now click into one of those forums:
http://www.ftw.net.au/forum-66.html
Quote:Sorry but there are currently no threads in this forum with the specified date and time limiting options.
If you took a moment to look at the logic of the function of forumdisplay.php you will see that you correctly have it blocking display if canviewthreads is not allowed. What's not correct is that a error_no_permission is not set for the error. The existing error only occurs because the script gets to the next part of the page and since it didn't do an sql query all variables are empty. It should instead break with an error_no_permissions.
OMG..gonna have a heart attack if this continues.
Posts: 9,866
Threads: 594
Joined: Jan 2006