format
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 17m35s

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)
{
JSValue json = JS_ParseJSON(context, work->settings, strlen(work->settings), NULL);
if (JS_IsObject(json) &&
work->user &&
work->package_owner &&
work->package_name)
if (JS_IsObject(json) && work->user && work->package_owner && work->package_name)
{
JSValue user_permissions = JS_GetPropertyStr(context, json, "userPermissions");
if (JS_IsObject(user_permissions))