* [bug#55831] adjust user priv for api.

This commit is contained in:
caoyanyi
2024-10-15 15:15:21 +08:00
committed by 李阳
parent ba611768b6
commit 487b5a0006
+1
View File
@@ -370,6 +370,7 @@ class userEntry extends entry
$info->rights = array();
$info->rights['admin'] = (!empty($inAdminGroup) or $this->app->user->admin);
$info->rights['rights'] = $this->app->user->rights['rights'];
if(isset($info->rights['rights']['task']['recordworkhour'])) $info->rights['rights']['task']['recordestimate'] = 1;
}
}