forked from cory/tildefriends
format
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user