import { Serializer, AdminSerializer } from '../../models'


export function addSerializer() {
  return new Serializer('users', {
    select: ['id', 'username', 'type', 'screenName', 'statistics',
             'profilePictureLargeUrl', 'profilePictureMediumUrl',
             'createdAt', 'updatedAt', 'isPrivate', 'description',
             'administrators'],
    administrators: { through: AdminSerializer, embed: true }
  })
}

@@ -307,16 +307,32 @@
 rivate',
+ 'isRestricted',
  'descri

Add isRestricted field to UserSerializer