Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-15293

Add a projectAdminOnly middleware to gqlgen

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • current_quarter
    • ui
    • None

    Description

      Middleware we can add to gqlgen to handle permission checks automagically. https://gqlgen.com/reference/directives/

       

      I'm not certain that adding a gqlgen middleware that takes in the input variables is doable, but it's worth investigating how to get obj interface{} to contain the input variables so that we can check if a user is an admin of a specific project. 

      Attachments

        Issue Links

          Activity

            People

              sophie.stadler@mongodb.com Sophie Stadler
              chaya.malik@mongodb.com Chaya Malik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: