On Thu, 25 Oct 2007, Jim Wilson wrote:
>> I guess another total hack is to name all the private properties
>> similarly and therefore detectably - and then at render time, if the
>> user is an admin, print those, and if the user is not, don't.
>
> Assuming you had a way to programmatically determine whether the user
> has privs to see the info
I think that the logged-in user object has an easy way to tell if it's an
admin or not, and that should be enough for me; it doesn't have to be
fine-grained ACLs.
> , the next problem to address is caching. MediaWiki caches the rendered
> versions of pages to save processing from visitor to visitor.
That's just the parser cache, right? Perhaps what I'll do is, if the user
has extra privileges, ignore the parser cache; and for everyone else,
cache and display the low-privileges rendered version.
If that's not feasible I can probably afford to just disable the parser
cache as a whole.
-- Asheesh.
--
When a man knows he is to be hanged in a fortnight, it concentrates his
mind wonderfully.
-- Samuel Johnson
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Semediawiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel