We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8471171 commit 0bbb68bCopy full SHA for 0bbb68b
plugins/baser-core/src/Service/PermissionsService.php
@@ -551,7 +551,9 @@ public function convertRegexUrl(string $url)
551
{
552
if(strpos($url, '{loginUserId}') !== false) {
553
$user = BcUtil::loginUser();
554
- $url = str_replace('{loginUserId}', $user->id, $url);
+ if($user) {
555
+ $url = str_replace('{loginUserId}', $user->id, $url);
556
+ }
557
}
558
$prefix = BcUtil::getPrefix();
559
if($prefix !== '/baser/admin') {
0 commit comments