|
From: Tim V. <tv...@va...> - 2006-02-14 15:09:18
|
Hi Shane,
We actually recently added code to handle requiring an acl for a skin.
If require_acl is marked in the skins table the user will be redirected
to the homepage unless they have the necessary ACL. I suppose you could
add some additional code there to make sure any required ACL's are
enforced for a .shtml too regardless of what hostname they're coming from.
--Tim
shane wrote:
> I've got someone who has a slash-based site, and parts of it need to
> be locked down to paying members only.
>
> Years ago there was someone on IRC that I'd helped accomplish this
> (if you're around, please contact me). But since the code's been
> changing quite a bit since then (section-topics, etc) I'm looking at
> starting from scratch.
>
> When I was running this through my head I thought I'd create a
> skins.acl, then add code to the apache handler that checks if the
> skinds.{user.currentskid}.acl exists, check for the user having that
> acl etc etc.
>
> What's interesting is deciding whether to try and block out .shtm's
> through the apache handler or stop writing them when an article's
> primary skid has an acl associated with it.
>
> Take http://linux.slashdot.org/article.pl?sid=06/02/14/0429228 and
> view it in the games section http://games.slashdot.org/article.pl?
> sid=06/02/14/0429228
>
> I was suprised at the redirect/url-rewrite to the article's primaryskid.
>
> Now as an AnonCoward: http://linux.slashdot.org/linux/
> 06/02/14/0429228.shtml
>
> and
>
> http://games.slashdot.org/linux/06/02/14/0429228.shtml
>
> I was surprised at that as well. It seems to have kept the proper
> .css file inclusions even though the subdomain in the tld changed.
> Which is great with regard to cosmetics and each individual story.
> It's bad if you want a story to be subscriber only/member only for
> the life of the story.
>
> Any thoughts?
>
> Anyone else interested in this?
>
> Shane
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Slashcode-development mailing list
> Sla...@li...
> https://lists.sourceforge.net/lists/listinfo/slashcode-development
|