permissions=updatePermission(permissions,groupId,[databaseId,"schemas",schemaName,tableId],value/* TODO: field ids, when enabled "controlled" fields */);
/* Hack starts: both tables and schemas had to be set to "controlled" before setting the field value. Now finally infer the real tables/schemas permission values and set them. */