Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Commit

Permalink
fix: Allow authenticated updates and deletes on Sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
rossng committed Nov 4, 2020
1 parent 49da407 commit f0e5a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/schema-base/_SCHEMA.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
{"_id":"ProgramSessionEvent","objectId":"string","updatedAt":"date","createdAt":"date","_metadata":{"fields_options":{"conference":{"required":true},"startTime":{"required":true},"endTime":{"required":true},"directLink":{"required":false},"session":{"required":true},"item":{"required":true},"feed":{"required":false},"chair":{"required":false},"originatingID":{"required":false}},"class_permissions":{"get":{"requiresAuthentication":true},"find":{"requiresAuthentication":true},"count":{},"create":{},"update":{},"delete":{},"addField":{},"protectedFields":{}},"indexes":{"_id_":{"_id":{"$numberInt":"1"}}}},"conference":"*Conference","startTime":"date","endTime":"date","directLink":"string","session":"*ProgramSession","item":"*ProgramItem","feed":"*ContentFeed","chair":"string","originatingID":"string"}
{"_id":"ProgramTrack","objectId":"string","updatedAt":"date","createdAt":"date","_metadata":{"class_permissions":{"get":{"requiresAuthentication":true},"find":{"requiresAuthentication":true},"count":{},"create":{},"update":{},"delete":{},"addField":{},"protectedFields":{}},"fields_options":{"name":{"required":true},"conference":{"required":true},"shortName":{"required":true},"colour":{"required":true,"defaultValue":{"$numberInt":"0"}},"feed":{"required":false}},"indexes":{"_id_":{"_id":{"$numberInt":"1"}}}},"name":"string","conference":"*Conference","shortName":"string","colour":"string","feed":"*ContentFeed"}
{"_id":"Registration","objectId":"string","updatedAt":"date","createdAt":"date","_metadata":{"class_permissions":{"get":{"requiresAuthentication":true},"find":{},"count":{},"create":{},"update":{},"delete":{},"addField":{},"protectedFields":{}},"fields_options":{"name":{"required":true},"conference":{"required":true},"affiliation":{"required":false},"country":{"required":false},"email":{"required":true},"invitationSentDate":{"required":false},"newRole":{"required":true,"defaultValue":"attendee"}},"indexes":{"_id_":{"_id":{"$numberInt":"1"}}}},"name":"string","conference":"*Conference","affiliation":"string","country":"string","email":"string","invitationSentDate":"date","newRole":"string"}
{"_id":"Sponsor","objectId":"string","updatedAt":"date","createdAt":"date","_metadata":{"fields_options":{"name":{"required":true},"logo":{"required":false},"level":{"required":true,"defaultValue":{"$numberInt":"0"}},"representativeProfileIds":{"required":true,"defaultValue":[]},"conference":{"required":true},"videoRoom":{"required":false},"description":{"required":false},"colour":{"required":true,"defaultValue":"rgba(0,0,0,0)"}},"class_permissions":{"get":{"requiresAuthentication":true},"find":{"requiresAuthentication":true},"count":{},"create":{},"update":{},"delete":{},"addField":{},"protectedFields":{"*":[]}},"indexes":{"_id_":{"_id":{"$numberInt":"1"}}}},"name":"string","logo":"file","level":"number","representativeProfileIds":"array","conference":"*Conference","videoRoom":"*VideoRoom","description":"string","colour":"string"}
{"_id":"SponsorContent","objectId":"string","updatedAt":"date","createdAt":"date","_metadata":{"class_permissions":{"get":{"requiresAuthentication":true},"find":{"requiresAuthentication":true},"count":{},"create":{},"update":{"requiresAuthentication":true},"delete":{"requiresAuthentication":true},"addField":{},"protectedFields":{"*":[]}},"fields_options":{"sponsor":{"required":true},"ordering":{"required":true},"markdownContents":{"required":false},"videoURL":{"required":false},"image":{"required":false},"buttonContents":{"required":false},"wide":{"required":true,"defaultValue":false},"conference":{"required":true}}},"sponsor":"*Sponsor","ordering":"number","markdownContents":"string","videoURL":"string","image":"file","buttonContents":"object","wide":"boolean","conference":"*Conference"}
{"_id":"Sponsor","objectId":"string","updatedAt":"date","createdAt":"date","_metadata":{"fields_options":{"name":{"required":true},"logo":{"required":false},"level":{"required":true,"defaultValue":{"$numberInt":"0"}},"representativeProfileIds":{"required":true,"defaultValue":[]},"conference":{"required":true},"videoRoom":{"required":false},"description":{"required":false},"colour":{"required":true,"defaultValue":"rgba(0,0,0,0)"}},"class_permissions":{"get":{"requiresAuthentication":true},"find":{"requiresAuthentication":true},"count":{},"create":{},"update":{"requiresAuthentication":true},"delete":{"requiresAuthentication":true},"addField":{},"protectedFields":{"*":[]}},"indexes":{"_id_":{"_id":{"$numberInt":"1"}}}},"name":"string","logo":"file","level":"number","representativeProfileIds":"array","conference":"*Conference","videoRoom":"*VideoRoom","description":"string","colour":"string"}
{"_id":"SponsorContent","objectId":"string","updatedAt":"date","createdAt":"date","_metadata":{"class_permissions":{"get":{"requiresAuthentication":true},"find":{"requiresAuthentication":true},"count":{},"create":{},"update":{"requiresAuthentication":true},"delete":{"requiresAuthentication":true},"addField":{},"protectedFields":{"*":[]}},"fields_options":{"sponsor":{"required":true},"ordering":{"required":true},"markdownContents":{"required":false},"videoURL":{"required":false},"image":{"required":false},"buttonContents":{"required":false},"wide":{"required":true,"defaultValue":false},"conference":{"required":true}},"indexes":{"_id_":{"_id":{"$numberInt":"1"}}}},"sponsor":"*Sponsor","ordering":"number","markdownContents":"string","videoURL":"string","image":"file","buttonContents":"object","wide":"boolean","conference":"*Conference"}
{"_id":"TextChat","objectId":"string","updatedAt":"date","createdAt":"date","_metadata":{"fields_options":{"conference":{"required":true},"twilioID":{"required":true},"name":{"required":true},"mirrored":{"required":true,"defaultValue":false},"autoWatch":{"required":true,"defaultValue":false},"isDM":{"required":true},"mode":{"required":true,"defaultValue":"ordinary"},"relatedModerationKey":{"required":false},"creator":{"required":true}},"class_permissions":{"get":{"requiresAuthentication":true},"find":{"requiresAuthentication":true},"count":{},"create":{},"update":{"requiresAuthentication":true},"delete":{"requiresAuthentication":true},"addField":{},"protectedFields":{"*":[]}},"indexes":{"_id_":{"_id":{"$numberInt":"1"}}}},"conference":"*Conference","twilioID":"string","name":"string","mirrored":"boolean","autoWatch":"boolean","isDM":"boolean","mode":"string","relatedModerationKey":"string","creator":"*UserProfile"}
{"_id":"TextChatMessage","objectId":"string","updatedAt":"date","createdAt":"date","_metadata":{"fields_options":{"chat":{"required":true},"text":{"required":true,"defaultValue":""},"attributes":{"required":false,"defaultValue":{}},"sentAt":{"required":true}},"class_permissions":{"get":{"requiresAuthentication":true},"find":{"requiresAuthentication":true},"count":{},"create":{},"update":{},"delete":{},"addField":{},"protectedFields":{"*":[]}},"indexes":{"_id_":{"_id":{"$numberInt":"1"}}}},"chat":"*TextChat","text":"string","attributes":"object","sentAt":"date"}
{"_id":"UserProfile","objectId":"string","updatedAt":"date","createdAt":"date","user":"*_User","conference":"*Conference","profilePhoto":"file","_metadata":{"class_permissions":{"get":{"requiresAuthentication":true},"find":{"requiresAuthentication":true},"count":{},"create":{},"update":{"requiresAuthentication":true},"delete":{},"addField":{},"protectedFields":{}},"indexes":{"_id_":{"_id":{"$numberInt":"1"}},"profileByUser":{"user":{"$numberInt":"1"}}},"fields_options":{"realName":{"required":true},"welcomeModalShown":{"required":true,"defaultValue":false},"dataConsentGiven":{"required":true},"affiliation":{"required":false},"bio":{"required":false},"country":{"required":false},"position":{"required":false},"pronouns":{"required":true,"defaultValue":[]},"tags":{"required":true,"defaultValue":[]},"webpage":{"required":false},"profilePhoto":{"required":false},"flairs":{"required":true,"defaultValue":[]},"primaryFlair":{"required":false},"watched":{"required":true},"isBanned":{"required":true,"defaultValue":false},"firstLogin":{"required":false}}},"realName":"string","displayName":"string","welcomeModalShown":"boolean","dataConsentGiven":"boolean","affiliation":"string","bio":"string","country":"string","position":"string","pronouns":"array","tags":"array","webpage":"string","flairs":"array","primaryFlair":"*Flair","watched":"*WatchedItems","isBanned":"boolean","firstLogin":"date"}
Expand Down

0 comments on commit f0e5a4c

Please sign in to comment.