fix #1518 set guest role
This commit is contained in:
parent
7b0188ee42
commit
097eb0a496
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ public class RoleQueryHelper {
|
|||
if (isApiRequest && ComponentUtil.getFessConfig().getApiAccessTokenRequiredAsBoolean()) {
|
||||
throw new InvalidAccessTokenException("invalid_token", "Access token is requried.");
|
||||
}
|
||||
if (!hasAccessToken) {
|
||||
if (!hasAccessToken || roleSet.isEmpty()) {
|
||||
roleSet.addAll(fessConfig.getSearchGuestPermissionList());
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue