mirror of
https://github.com/wekan/wekan.git
synced 2026-11-05 15:45:01 -05:00
Record that the admin card reports are instance-wide by decision.
Thanks to xet7 !
This commit is contained in:
1 parent
fd8b51464f
commit
69f3358154
1 file changed
+6
@@ -1533,6 +1533,12 @@ async function findCards(sessionId, query, userId) {
|
||||
// board/swimlane/list/member context. Uses plain server-side limit/skip just
|
||||
// like the org/team/people admin lists, so only the current page is ever sent
|
||||
// to the browser instead of the whole Cards collection.
|
||||
//
|
||||
// Instance-wide on purpose (maintainer decision 2026-10-02): a site admin
|
||||
// manages every board, and these reports are for maintaining the instance, so
|
||||
// they list cards of boards the admin is not a member of too. The same holds
|
||||
// for brokenCardsReport above. The isAdmin check below is what keeps them
|
||||
// from everybody else.
|
||||
Meteor.publish('cardsReport', async function(searchTerm = '', limit, skip = 0) {
|
||||
check(searchTerm, Match.OneOf(String, null, undefined));
|
||||
check(limit, Number);
|
||||
|
||||
Reference in new issue
Block a user