Custom page if the user doesn't have the permission to access page.

Permalink Browser Info Environment
Hey,
The company I work for is looking for a plugin that would redirect the user to a custom page if he doesn't have the permissions to view that page. Do you have plans to add this feature any time soon?

Type: Discussion
Status: New
slafleche
View Replies:
ScottC replied on at Permalink Reply
ScottC
That is a good feature request. I would probably have to add it to the settings instead of making it a rule based on the URL (at least for now).

So where the settings have a custom 404 page I would add another setting where if the page exists but the user doesn't have access then redirect to that page?

Would that work? I don't think it would make sense to attach it to a rewrite rule.

Scott Conrad
Web Application Engineer
website
slafleche replied on at Permalink Reply
slafleche
For this particular client, they have a pay wall and would like non autorized users to be sent to the sign up page. So yeah, a setting next to the custom 404 page would be pefect.

It would be even better if you could also have a custom attribute you could add to specific pages, so you could have more than one page. Inheritance would be fantastic too.

But, we would be happy with just the one setting :)

Thanks!
ScottC replied on at Permalink Reply
ScottC
Yeah I agree. If you think they would want to pay for those modifications then please feel free to mock them up and I can quote that. Might take a couple of weeks.

I'm not sure how inheritance would work. But that is a good feature request either way.


Scott Conrad
Web Application Engineer
website
slafleche replied on at Permalink Reply
slafleche
This particular project needs to be wrapped up pretty soon, so I totally understand if you don't have time/interest in getting it done right away. We're not looking to hiring you, but if you do get this feature in we'd definitely buy your plugin for future projects.
slafleche replied on at Permalink Reply
slafleche
FYI, I found where Concrete redirects unauthorized user. It's in \concrete\dispatcher.php line 190. I replaced the contents of the switch case with a redirect. It works, but it would be better to have a nice interface to make it editable in your plugin ;)

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.