mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 20:27:07 +09:00
Merge pull request #769 from BelleNottelling/issue763
Fix issue #763 (Logging in as "system cron job")
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -397,7 +397,7 @@ $di['loggedin_client'] = function () use ($di) {
|
||||
* @throws \Box_Exception If the script is running in CLI or CGI mode and there is no cron admin available.
|
||||
*/
|
||||
$di['loggedin_admin'] = function () use ($di) {
|
||||
if ('cli' === php_sapi_name() || str_starts_with(php_sapi_name(), 'cgi')) {
|
||||
if ('cli' === php_sapi_name() || !http_response_code()) {
|
||||
return $di['mod_service']('staff')->getCronAdmin();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user