Is there a way to have an automatic group which contains all group owners, in much the same way as @staff works?
I’d like to make all my group owners TL2, and to keep track of them as my site (hopefully) grows quickly. Also I want to change their powers as a group as time goes on, as well as communicate with them and have a category for them. I don’t want to make them all mods as they aren’t ready for that.
In the meantime, I can do this manually; however as our tightly managed Forum grows an automatic group would become more and more helpful.
Alternatively, how hard would this be to do as a plugin?
L’SQL è qui (può essere utilizzato anche in Data Explorer)
SELECT DISTINCT user_id, owner, CURRENT_TIMESTAMP granted_at
FROM group_users
WHERE group_users.owner = true
Utilizza CURRENT_TIMESTAMP poiché non c’è un timestamp comodo per la proprietà del gruppo nel database che io possa vedere. Non c’è nemmeno un trigger comodo, quindi la cosa :backfill può essere omessa.
Suggerisco questa configurazione:
Esegui la query di revoca giornalmente
Trigger: Aggiorna giornalmente
Non sono sicuro di “Può essere concesso più volte”
La query viene eseguita solo una volta per ogni utente, quindi non ne verranno concesse più. Ma potrebbe essere necessario che il badge venga concesso di nuovo una volta revocato, non sono sicuro!