SF.net SVN: phpwiki:[11072] trunk/lib/PagePerm.php
vargenau--- via phpwiki-checkins <[email protected]> Fri, 12 Jan 2024 18:46:12 +0000
| Newsgroups | gmane.comp.web.wiki.phpwiki.checkins |
|---|---|
| Message-ID | <[email protected]> |
Revision: 11072
http://sourceforge.net/p/phpwiki/code/11072
Author: vargenau
Date: 2024-01-12 18:46:11 +0000 (Fri, 12 Jan 2024)
Log Message:
-----------
lib/PagePerm.php patches by Christof Meerwald
Modified Paths:
--------------
trunk/lib/PagePerm.php
Modified: trunk/lib/PagePerm.php
===================================================================
--- trunk/lib/PagePerm.php 2024-01-12 18:43:33 UTC (rev 11071)
+++ trunk/lib/PagePerm.php 2024-01-12 18:46:11 UTC (rev 11072)
@@ -392,7 +392,7 @@
}
} else {
// set default permissions, the so called dot-file acl's
- $this->perm = $this->defaultPerms();
+ $this->perm = PagePermission::defaultPerms();
}
return $this;
}
@@ -488,7 +488,7 @@
* returns hash of default permissions.
* check if the page '.' exists and returns this instead.
*/
- public function defaultPerms()
+ public static function defaultPerms()
{
//Todo: check for the existance of '.' and take this instead.
//Todo: honor more config.ini auth settings here
@@ -566,7 +566,7 @@
/**
* returns list of all supported access types.
*/
- public function accessTypes()
+ public static function accessTypes()
{
return array_keys(PagePermission::defaultPerms());
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.