nossas / bonde-webhooks

Services for works with authentication on Bonde.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bonde Accounts

Services for works with authentication on Bonde.org

Permissions

To understand how permissions are worked on Bonde we need to consider the following models:

type User = {
  id: number;
  first_name: string;
  last_name?: string;
  email: string;
  encrypted_password: string;
  is_admin: boolean
}

type Community = {
  id: number;
  name: string;
  city: string;
}

type CommunityUsers = {
  user: User;
  community: Community;
  /** Roles: 1 - Admin | 2 - Mobilizer */
  role: number
}
  • Users with is_admin true has permissions to access all Bonde, used for plataform maintainers.
  • Users with is_admin false has permissions to access Bonde contextualized by the member community.
  • TODO: create levels to access contextualized by community

Packages

😍 Made with love by Bonde

About

Services for works with authentication on Bonde.org


Languages

Language:TypeScript 97.2%Language:HTML 2.7%Language:Dockerfile 0.1%