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

Add a projectAdminOnly middleware to gqlgen

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: current_quarter
    • Component/s: ui
    • Labels:
      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

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

                Dates

                Created:
                Updated: