From: Reini U. <ru...@x-...> - 2004-11-06 14:26:48
|
Antonio Bonifati schrieb: > Hi, I'm using the CVS version of PhpWiki, last updated on 20041022. > > I need a wiki which is restricts both readings and editings. > I want only the admin user (or some authenticated users) > to be able to read/edit pages, and all the others authenticated users > must only be able to read. > > I can't get the ACL system to work. I also tried to mix external Apache HTTP > authentication with PhpWiki Db auth but I found that this way I need to > re-enter the password every time I do a page preview and some things > don't work (e.g. the UpLoad plugin). Just setup some strict auth and group settings. ALLOW_ANON_EDIT = false ALLOW_BOGO_LOGIN = false GROUP_METHOD = WIKIPAGE CategoryGroup: * [Administrators] Administrators: * [AdminName] * [SomeUser] ---- CategoryGroup setacl "." for Administrators will only work with CVS, not 1.3.10 For 1.3.10 you'd need to fix the defaultPerms() in lib/PagePerm.php // edit: if (!ALLOW_ANON_EDIT) { $perm['edit'] = array(ACL_ADMIN => true); $perm['create'] = $perm['edit']; } -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |