mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
6d892359c7
Add private checkbox for clan creation. Add info popover for private clans. Subscribe prompt for create/join if necessary. Don’t list private clans in public list.
18 lines
519 B
CoffeeScript
18 lines
519 B
CoffeeScript
c = require './../schemas'
|
|
|
|
ClanSchema = c.object {title: 'Clan', required: ['name', 'type']}
|
|
c.extendNamedProperties ClanSchema # name first
|
|
|
|
_.extend ClanSchema.properties,
|
|
description: {type: 'string'}
|
|
members: c.array {title: 'Members'}, c.objectId()
|
|
ownerID: c.objectId()
|
|
type: {type: 'string', 'enum': ['public', 'private']}
|
|
|
|
c.extendBasicProperties ClanSchema, 'Clan'
|
|
|
|
# Do we need these?
|
|
# c.extendSearchableProperties ClanSchema
|
|
# c.extendPermissionsProperties ClanSchema
|
|
|
|
module.exports = ClanSchema
|