Skip to content

Commit 0bbb68b

Browse files
committed
権限チェック処理においてWarningを調整
1 parent 8471171 commit 0bbb68b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/baser-core/src/Service/PermissionsService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,9 @@ public function convertRegexUrl(string $url)
551551
{
552552
if(strpos($url, '{loginUserId}') !== false) {
553553
$user = BcUtil::loginUser();
554-
$url = str_replace('{loginUserId}', $user->id, $url);
554+
if($user) {
555+
$url = str_replace('{loginUserId}', $user->id, $url);
556+
}
555557
}
556558
$prefix = BcUtil::getPrefix();
557559
if($prefix !== '/baser/admin') {

0 commit comments

Comments
 (0)