File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ func (s *Sharing) BeOwner(inst *instance.Instance, slug string) error {
152
152
// CreatePreviewPermissions creates the permissions doc for previewing this sharing,
153
153
// or updates it with the new codes if the document already exists
154
154
func (s * Sharing ) CreatePreviewPermissions (inst * instance.Instance ) (map [string ]string , error ) {
155
- doc , err := permissions .GetForSharePreview (inst , s .SID )
155
+ doc , _ := permissions .GetForSharePreview (inst , s .SID )
156
156
157
157
codes := make (map [string ]string , len (s .Members )- 1 )
158
158
for i , m := range s .Members {
@@ -192,9 +192,9 @@ func (s *Sharing) CreatePreviewPermissions(inst *instance.Instance) (map[string]
192
192
}
193
193
}
194
194
195
- if err = = nil {
195
+ if doc ! = nil {
196
196
doc .Codes = codes
197
- if err = couchdb .UpdateDoc (inst , doc ); err != nil {
197
+ if err : = couchdb .UpdateDoc (inst , doc ); err != nil {
198
198
return nil , err
199
199
}
200
200
} else {
You can’t perform that action at this time.
0 commit comments