Logo
Explore Help
Register Sign In
Mirrors/plane
1
0
Fork 0
You've already forked plane
mirror of https://github.com/makeplane/plane.git synced 2026-07-10 20:41:15 +02:00
Code Issues Packages Projects Releases Wiki Activity
Files
develop-deploy
plane/web/helpers/user.helper.ts

13 lines
213 B
TypeScript
Raw Permalink Normal View History

feat: event tracking using posthog and created application provider to render multiple wrappers (#2757) * fix: event tracker changes * fix: App provider implementation using wrappers * fix: updating packages * fix: handling warning * fix: wrapper fixes and minor optimization changes * fix: chore app-provider clearnup * fix: cleanup * fix: removing jitsu tracking * fix: minor updates * fix: adding event to posthog event tracker (#2802) * dev: posthog event tracker update intitiate * fix: adding events for posthog integration * fix: event payload --------- Co-authored-by: Ramesh Kumar Chandra <31303617+rameshkumarchandra@users.noreply.github.com>
2023-11-20 13:29:54 +05:30
export const getUserRole = (role: number) => {
switch (role) {
case 5:
return "GUEST";
case 10:
return "VIEWER";
case 15:
return "MEMBER";
case 20:
return "ADMIN";
}
};
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 1017ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API