mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-26 15:25:30 +08:00
Fix 最近使用纪录验证权限
This commit is contained in:
parent
c69ebc999e
commit
53d72572e6
1 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,7 @@ import java.util.Set;
|
|||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
import com.rebuild.server.Application;
|
||||
import com.rebuild.server.configuration.portals.FieldValueWrapper;
|
||||
import com.rebuild.server.helper.ConfigurableItem;
|
||||
import com.rebuild.server.helper.SysConfiguration;
|
||||
|
@ -84,6 +85,10 @@ public class RecentlyUsedCache {
|
|||
List<ID> data = new ArrayList<>();
|
||||
for (int i = 0; i < limit && i < exists.size(); i++) {
|
||||
final ID raw = exists.get(i);
|
||||
if (!Application.getSecurityManager().allowedR(user, raw)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
String label = FieldValueWrapper.getLabel(raw);
|
||||
ID clone = ID.valueOf(raw.toLiteral());
|
||||
|
|
Loading…
Reference in a new issue