Skip to content

Commit

Permalink
Allow an account to add any connection or friend they wish
Browse files Browse the repository at this point in the history
  • Loading branch information
Misterblue committed Nov 3, 2020
1 parent 292681a commit b3776e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entities/AccountEntity.ts
Expand Up @@ -275,7 +275,7 @@ export const accountFields: { [key: string]: FieldDefn } = {
entity_field: 'connections',
request_field_name: 'connections',
get_permissions: [ 'owner', 'admin', 'friend', 'connection' ],
set_permissions: [ 'admin' ], // set internally with admin tokens
set_permissions: [ 'owner', 'admin' ],
validate: isSArraySet,
setter: sArraySetter,
getter: simpleGetter
Expand All @@ -284,7 +284,7 @@ export const accountFields: { [key: string]: FieldDefn } = {
entity_field: 'friends',
request_field_name: 'friends',
get_permissions: [ 'owner', 'admin', 'friend' ],
set_permissions: [ 'admin' ],// set internally with admin tokens
set_permissions: [ 'owner', 'admin' ],
validate: isSArraySet,
setter: sArraySetter,
getter: simpleGetter
Expand Down

0 comments on commit b3776e1

Please sign in to comment.