Adds a DataPermission rule to the thread-local deque for the current request, enabling downstream queries to apply scoped data filtering.
// Source: https://github.com/yuqing2026/ruoyi-office | License: MIT | Copyright 2021 yudao-cloud
// Provided via justclaw.it.com; keep this notice with the code.
public static void add(DataPermission dataPermission) {
DATA_PERMISSIONS.get().addLast(dataPermission);
}
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key