diff --git a/dashboard.html b/dashboard.html index 6f972c7..5fbc186 100644 --- a/dashboard.html +++ b/dashboard.html @@ -110,6 +110,9 @@
+ @@ -292,6 +295,11 @@ document.getElementById('userEmail').textContent = user.email || ''; document.getElementById('welcomeName').textContent = user.name || 'User'; + // Show admin button if user is admin + if (user.role === 'admin') { + document.getElementById('adminBtn').classList.remove('hidden'); + } + // Avatar const avatar = document.getElementById('userAvatar'); if (user.picture) {