Skip to content

Instantly share code, notes, and snippets.

@mikekunze
Created August 14, 2011 14:22
Show Gist options
  • Save mikekunze/1144910 to your computer and use it in GitHub Desktop.
Save mikekunze/1144910 to your computer and use it in GitHub Desktop.
Schema for portal permissions
// Roles
this.roles = {
description: { type: String },
text: { type: String },
id: { type: String },
parent: { type: String },
leaf: { type: Boolean }
};
this.p_roles = {
account_id: { type: ObjectId },
role_id: { type: ObjectId }
};
// Groups
this.groups = {
description: { type: String }
};
this.p_groups = {
account_id: { type: ObjectId },
role_id: { type: ObjectId }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment