Fix user profile privacy

This commit is contained in:
gpt-engineer-app[bot]
2025-09-29 02:43:54 +00:00
parent 8378c345d1
commit 50d75e0924
2 changed files with 186 additions and 1 deletions

View File

@@ -949,13 +949,46 @@ export type Database = {
}
}
Views: {
[_ in never]: never
public_profiles: {
Row: {
avatar_image_id: string | null
avatar_url: string | null
bio: string | null
coaster_count: number | null
created_at: string | null
date_of_birth: string | null
display_name: string | null
home_park_id: string | null
id: string | null
location_id: string | null
park_count: number | null
personal_location: string | null
preferred_pronouns: string | null
privacy_level: string | null
reputation_score: number | null
review_count: number | null
ride_count: number | null
show_pronouns: boolean | null
updated_at: string | null
user_id: string | null
username: string | null
}
Relationships: []
}
}
Functions: {
can_manage_user: {
Args: { _manager_id: string; _target_user_id: string }
Returns: boolean
}
can_view_profile_field: {
Args: {
_field_name: string
_profile_user_id: string
_viewer_id: string
}
Returns: boolean
}
get_user_management_permissions: {
Args: { _user_id: string }
Returns: Json