https://supabase.com/ logo
Join Discord
Powered by
# help
  • k

    Kosh

    08/02/2021, 7:06 AM
    video stream
  • d

    DharmaraJ

    08/02/2021, 7:32 AM
    Are there any security rules on database?
  • d

    DharmaraJ

    08/02/2021, 7:32 AM
    so users can read rows where the UID column value is equal to theier auth UID?
  • d

    DharmaraJ

    08/02/2021, 7:33 AM
    What's the term in supabase* (for security rules in Firebase)
  • a

    Azura

    08/02/2021, 7:34 AM
    You can make use of Supabase's integrated Row Level Security Learn more at: https://supabase.io/docs/learn/auth-deep-dive/auth-row-level-security
  • d

    DharmaraJ

    08/02/2021, 7:34 AM
    Thanks 👍
  • d

    DharmaraJ

    08/02/2021, 7:36 AM
    oh perfect
  • a

    Azura

    08/02/2021, 7:37 AM
    Hope you find it helpful.
  • d

    DharmaraJ

    08/02/2021, 7:40 AM
    Yes. Just 1 more question:
    Copy code
    sql
    FOR UPDATE USING (
      auth.email() = email
    ) WITH CHECK (
      auth.email() = email
    );
    Copy code
    sql
    FOR DELETE USING (
      auth.uid() = user_id
    );
    If I understand it correctly
    WITH CHECK
    is just compare those 2 values. But why the the DELETE example not using it?
  • d

    DharmaraJ

    08/02/2021, 7:40 AM
    It's from the RLS templates
  • m

    magicquin

    08/02/2021, 7:42 AM
    Hi goes all
  • a

    Azura

    08/02/2021, 7:42 AM
    That relates to SQL's policy, which you can also check out at: https://supabase.io/docs/learn/auth-deep-dive/auth-policies
  • a

    Azura

    08/02/2021, 7:43 AM
    Posgres's documentations could give you the general idea on that more clearly. https://www.postgresql.org/docs/12/sql-createpolicy.html
  • d

    DharmaraJ

    08/02/2021, 7:43 AM
    Thank you
  • d

    DharmaraJ

    08/02/2021, 7:44 AM
    Copy code
    'check_expression':
    This expression will be used in "INSERT" and "UPDATE" queries
  • d

    DharmaraJ

    08/02/2021, 7:44 AM
    Got it! Thanks again 🙂
  • d

    DharmaraJ

    08/02/2021, 7:45 AM
    so this is to validate incoming data and hence is used in insert or update only.
  • j

    joshcawthorne

    08/02/2021, 9:11 AM
    Is there any documentation on how roles work with auth? Can't seem to get the
    inviteUserByEmail
    api to work due to users not having the right roles, but unsure on how to set roles for users?
    s
    • 2
    • 5
  • s

    silentworks

    08/02/2021, 9:50 AM
    Invite user by email
  • l

    LeDragunov

    08/02/2021, 10:46 AM
    Hello, I'm not sure if it's possible. But have anyone tried "TRIGGERING PYTHON SCRIPT WHEN ROW INSERTED IN A DB TABLE"
    a
    • 2
    • 10
  • d

    DharmaraJ

    08/02/2021, 11:47 AM
    Does supabase have any triggers on storage ? When a new file is uploaded it triggers something ?
  • d

    DharmaraJ

    08/02/2021, 11:49 AM
    Similar to Firebase's
    onFinalized
    triggers
  • a

    Azura

    08/02/2021, 11:53 AM
    Existing thread at #871708089676619837
  • s

    s u s h i

    08/02/2021, 12:17 PM
    Hi guyss, any of you know how to remove this? since I am only interested on the data
  • a

    a d

    08/02/2021, 12:19 PM
    Run Scripts based on realtime updates
  • s

    silentworks

    08/02/2021, 12:21 PM
    You can't, these are Vue JS reactive functions, they won't do anything to your data
  • l

    Lynqoid

    08/02/2021, 12:26 PM
    We are having another issue with Supabase, currently getting, the following issue, any one else?
    a
    s
    • 3
    • 6
  • a

    a d

    08/02/2021, 12:30 PM
    that's status 500 so maybe not an issue with supabase
  • a

    a d

    08/02/2021, 12:31 PM
    its receiving req but it's responding with 500 as there might be some internal error?
  • a

    Azura

    08/02/2021, 12:31 PM
    Please create a thread for this issue, @a d @Lynqoid
1...313233...316Latest