By Syabab on Thursday, 02 July 2015
Posted in General Issues
Replies 1
Likes 0
Views 647
Votes 0
Hi,

I have set a group user to be able to select category 'when creating discussion' so they can post to it. But I set this same group not to view discussion and view reply to it. Only moderator can view it. Moderator then move this topic to the correct category where user should view it.

This can be done successfully.

The problem is if user goes to My Profile, it will display their latest post...and when it click their post, which is not yet move to the correct category by moderator, it will goes to error 404 page instead of displaying no permission page/info.

Any idea how to make it display no permission info? instead of redirecting to error page.

Thanks for any help.
Hello Syabab,

That is actually a correct behavior for the SEO benefit of the site. If you want to slightly change the behavior where it will display no permission error message and redirected back to easydiscuss frontpage, you can download the attachment below and place it inside your /components/com_easydiscuss/views/post/ folder and see how it goes.

If you want to change the wording, you can go to your language file and search for the following string,
COM_EASYDISCUSS_CATEGORIES_FOR_REGISTERED_USERS_ONLY="Sorry but this is a restricted area for registered members only. You are not allowed to view the entries from this category."

and change it accordingly. Hope these help.
·
Thursday, 02 July 2015 15:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post