feat: roles/permissions system and Nostr profile display on admin users
Introduce granular role-based permissions with SuperAdmin env override, admin roles UI, and permission-gated API routes. Fix admin user Nostr metadata by batching relay profile fetches, normalizing npub pubkeys to hex, and adding reusable NostrAvatar/useNostrProfile components. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -86,7 +86,11 @@ export default function OverviewPage() {
|
||||
<StatCard icon={Calendar} label="Total Meetups" value={meetups.length} />
|
||||
<StatCard icon={FileText} label="Blog Posts" value={posts.length} />
|
||||
<StatCard icon={Tag} label="Categories" value={categories.length} />
|
||||
<StatCard icon={User} label="Your Role" value={user.role} />
|
||||
<StatCard
|
||||
icon={User}
|
||||
label="Your Role"
|
||||
value={user.isSuperAdmin ? "SuperAdmin" : user.role}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{upcomingMeetup && (
|
||||
|
||||
Reference in New Issue
Block a user