L-2: a config collection that becomes staff later keeps the rules it had at config time
A collection of the config that is not named as staff and that a plugin listed after ipalKit makes the panel's (admin.user) was adopted as a late collection: the plugin's rule went in front of every rule, also the ones the project wrote. The marker now holds the operations that had a rule at config time (own); those are left as written when the collection is handled again, and an operation without one gets the plugin's. The start log tells this case from a collection a later plugin added. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
a743479276
commit
20809ba933
+2
-1
@@ -212,7 +212,8 @@ export const ipalKit = (options: IpalOptions): Plugin => {
|
||||
// said exactly: what was put, on which collection
|
||||
for (const late of lateAccounts) {
|
||||
const parts = [late.applied.length ? `access rules for ${late.applied.join(', ')}` : '', late.password ? 'the password rule' : '', late.firstUser ? 'the first-user endpoint' : ''].filter(Boolean)
|
||||
payload.logger.info(`[ipal] "${late.slug}" was added after ipalKit: put on it — ${parts.join('; ')}.`)
|
||||
const kept = late.kept.length ? ` Its own rules for ${late.kept.join(', ')} are kept as written.` : ''
|
||||
payload.logger.info(`[ipal] "${late.slug}" ${late.known ? 'became a staff collection after ipalKit ran' : 'was added after ipalKit'}: put on it — ${parts.join('; ')}.${kept}`)
|
||||
}
|
||||
}
|
||||
if (!secondFactorGuard) {return}
|
||||
|
||||
Reference in New Issue
Block a user