ecommerce-react-graphql icon indicating copy to clipboard operation
ecommerce-react-graphql copied to clipboard

Replace possiblePermissions array in frontend/components/Permissions.js with 'POSSIBLE_PERMISSIONS_QUERY'

Open jaridnft opened this issue 6 years ago • 0 comments

This would allow someone to ping the API to learn what kind of permissions are available from the backend. Currently, it is an array defined in ./backend/datamodel.graphql:

enum Permission {
  ADMIN
  USER
  ITEMCREATE
  ITEMUPDATE
  ITEMDELETE
  PERMISSIONUPDATE
}

jaridnft avatar Nov 13 '18 02:11 jaridnft