From: <var...@us...> - 2024-01-12 18:46:14
|
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. |