mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 01:49:41 -05:00
Renames the "Sync Members From LDAP" column to "Sync Members From Auth Provider" so the setting and feature apply to any authentication provider (LDAP, OAuth2/OIDC, SAML, etc.), not just LDAP. Renames the field/method/i18n key from *SyncMembersFromLdap / sync-members-from-ldap to *SyncMembersFromAuth / sync-members-from-auth across schema, publications, admin methods and the admin UI, and generalizes the translation string and code comments. The other two columns (Shared Templates, Propagate Members To Boards) were already auth-agnostic. Thanks to xet7. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
36 lines
841 B
JavaScript
36 lines
841 B
JavaScript
import { ReactiveCache } from '/imports/reactiveCache';
|
|
|
|
Meteor.publish('team', async function(query, limit, skip = 0) {
|
|
check(query, Match.OneOf(Object, null));
|
|
check(limit, Number);
|
|
check(skip, Match.OneOf(Number, null, undefined));
|
|
|
|
const user = await ReactiveCache.getCurrentUser();
|
|
|
|
let ret = [];
|
|
if (user && user.isAdmin) {
|
|
ret = await ReactiveCache.getTeams(query,
|
|
{
|
|
limit,
|
|
skip: skip || 0,
|
|
sort: { createdAt: -1 },
|
|
fields: {
|
|
teamDisplayName: 1,
|
|
teamDesc: 1,
|
|
teamShortName: 1,
|
|
teamWebsite: 1,
|
|
teams: 1,
|
|
createdAt: 1,
|
|
teamIsActive: 1,
|
|
teamSharedTemplates: 1,
|
|
teamPropagateMembersToBoards: 1,
|
|
teamSyncMembersFromAuth: 1,
|
|
}
|
|
},
|
|
true,
|
|
);
|
|
}
|
|
|
|
return ret;
|
|
});
|