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?
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 |
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!
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!
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
I'm not sure how inheritance would work. But that is a good feature request either way.
Scott Conrad
Web Application Engineer
website
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.
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 ;)
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