Here is what I have tried so far:
- I tried to remove the Metric, noting changed
- I tried to remove the negated groups, no dice
- I tried to remove the badges requirements, no dice
- I changed the users username to match nickname, nope
- I redid the entire criteria thinking it may be a 'ghost in the system' (new id is now 44 but issue persists)
- I noticed my cron ran on PHP 7.4 not 8.1 .. so fixed that ..
I decided to watch the logs for any clues while tinkering with Auto moderator and the only thing I see is
403 GET /api/criteria/43
403 GET /api/automod_drivers
This occurs when accessing this specific criteria and it's ID is 43
admin#/askvortsov-auto-moderator/criterion/43
on clicking save the POST to /api/criteria/43 is 200 (so fine)
but upon clicking back to criteria list I get
403 GET /api/criteria
so I headed over to /api/criteria/43
{"data":{"type":"criteria","id":"43","attributes":{"name":"Auto promote user to contributor.","icon":"fas fa-users","description":"Promote user to contributor if specific conditions are met, remove if they are not.","actions":[{"type":"add_to_group","settings":{"group_id":"5"},"gain":true},{"type":"remove_from_group","settings":{"group_id":"5"},"gain":false}],"metrics":[{"type":"discussions_started","min":"100","max":-1}],"requirements":[{"type":"in_group","negated":true,"settings":{"group_id":"1"}},{"type":"in_group","negated":true,"settings":{"group_id":"4"}},{"type":"has_badge","negated":false,"settings":{"badge_id":"36"}},{"type":"has_badge","negated":false,"settings":{"badge_id":"6"}}],"isValid":true,"invalidActionSettings":[],"invalidRequirementSettings":[]}}}
and now I have a headache.