mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 07:50:37 +01:00
* feat: #8824, cache refactor ability to disable caches ability to download contents of cache refactor cache modules to remove duplicated code * fix: remove duplicate hit/miss tracking check cacheEnabled in getUncachedKeys
This commit is contained in:
committed by
GitHub
parent
bcbc085497
commit
f1f9b225b0
@@ -41,6 +41,9 @@ helpers.isUserAllowedTo = async function (privilege, uid, cid) {
|
||||
};
|
||||
|
||||
async function isUserAllowedToCids(privilege, uid, cids) {
|
||||
if (!privilege) {
|
||||
return cids.map(() => false);
|
||||
}
|
||||
if (parseInt(uid, 10) <= 0) {
|
||||
return await isSystemGroupAllowedToCids(privilege, uid, cids);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user