From 3a43cf07b3bd4addc7783ec6a23366bd941fae82 Mon Sep 17 00:00:00 2001 From: "pead@barda.cz" Date: Wed, 13 Nov 2024 00:19:07 +0100 Subject: [PATCH] Fix login into mantis ending with access denied. Doku wiki version 2024-02-06b interacts with mantisbt-2.25.7 incorrectly using the access_get_project_level function. Dokuwiki uses this API internallly for users other than the current logged in user and not specifying the ID breaks that functionality. Similarly this also does not work for the session when a user is being authenticated as some global value is not actually set in the mantis project and thus the function fails as no user is found. --- auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.php b/auth.php index 589a28b..8714da6 100644 --- a/auth.php +++ b/auth.php @@ -161,7 +161,7 @@ protected function _loadUserData( $p_user_id ) { $t_access_level_string = strtoupper( MantisEnum::getLabel( config_get( 'access_levels_enum_string' ), - access_get_project_level( $t_project_id ) + access_get_project_level( $t_project_id, $p_user_id ) ) ); $t_access_levels = array( $t_access_level_string );