Profile permissions belong in one table, because scattered they hid a capability chat was never meant to have

This commit is contained in:
Gmer4Lfe
2026-08-06 20:51:19 -04:00
parent d562644581
commit 917ff43795
3 changed files with 73 additions and 17 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ if ($action === 'ask') {
if ($scope !== '' && !vv_ai_scope_ok($scope)) $scope = '';
// The retrieval filter only means anything to the profile that retrieves.
$kind = $profile === 'varaverk' ? trim($_POST['kind'] ?? '') : '';
$kind = vv_ai_profile_can($profile, 'kind_filter') ? trim($_POST['kind'] ?? '') : '';
if ($kind !== '' && !in_array($kind, VV_AI_KINDS, true)) {
echo json_encode(['ok' => false, 'error' => 'Unknown kind: ' . $kind]); exit;
}