This commit is contained in:
2025-10-29 18:37:17 -04:00
parent 13302ad1c7
commit 4052e3235f

View File

@@ -345,10 +345,7 @@ static void _tf_api_core_permissions_granted_after_work(tf_ssb_t* ssb, int statu
if (work->settings) if (work->settings)
{ {
JSValue json = JS_ParseJSON(context, work->settings, strlen(work->settings), NULL); JSValue json = JS_ParseJSON(context, work->settings, strlen(work->settings), NULL);
if (JS_IsObject(json) && if (JS_IsObject(json) && work->user && work->package_owner && work->package_name)
work->user &&
work->package_owner &&
work->package_name)
{ {
JSValue user_permissions = JS_GetPropertyStr(context, json, "userPermissions"); JSValue user_permissions = JS_GetPropertyStr(context, json, "userPermissions");
if (JS_IsObject(user_permissions)) if (JS_IsObject(user_permissions))