[since the two words are identical, I will be using an uppercase "Group" to
refer to PmWiki Groups of pages, and use a lowercase "group" to refer to
AuthUser groups of users]
Is there a programmatic way to restrict group access?
I'm setting up a wiki for others to maintain, who will be creating users
and Groups.
Each Group should be restricted to one AuthUser group.
Ideally, the AuthUser group would have the same name as the Group.
This would mean that once a Group is created and users are added to the
AuthUser group, no further action would have to be taken by the
administrator.
However, I haven't figured out how to set Group restrictions without using
{Group}.GroupAttributes?action=attr and manually setting the group.
Would it be possible to do something like the following in local/config.php
?
// exclude Groups like PmWiki, Main, etc.
if ($Group != 'Site') {
$DefaultPasswords['read'] = array('@$Group', 'id:admin'); // restrict to
group and admin
}
I believe I tried the above and it didn't work (I'm away from my dev
machine right now).
If something like this is possible, could it easily be extended to add
additional users or groups via GroupAttributes without modifying config.php?
-Michael Paulukonis
http://www.xradiograph.com
<http://goog_2112721603>Interference Patterns (a
blog)<http://www.xradiograph.com%5Cinterference>
@XraysMonaLisa <https://twitter.com/XraysMonaLisa>
http://michaelpaulukonis.com
<http://www.BestAndroidResources.com>
Sent from somewhere in the Cloud
(hearthrug, by the fender)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20131030/dd33bbe4/attachment.html>