Closed nickyhajal closed 10 years ago
One note -
At the moment User.hasCapability() has a map so that, for example, 'manifest' also gives the 'add-attendee' capability. We should only list the top-level, broad capabilities in the list above.
We should probably move that map within the function up to the object, User.capabilityMap, so that it can be used in other settings.
Or, maybe it should be a full map of all capabilities:
User.capabilities = {manifest: ['add-attendee', 'user'], speakers: ['add-speaker', 'speaker']}
There's some architectural flexibility there - feel free to do whatever seems best to you as you work through it.
The flow for this should be:
Let me know if that's all good and if you have any questions!