Merge branch 'dev' into templates

This commit is contained in:
2026-01-06 12:25:55 -06:00
11 changed files with 368 additions and 288 deletions

View File

@@ -16,7 +16,7 @@ import { UserCog, Search, Shield, UserPlus, Mail, Edit, Eye, Trash2, UserCheck,
const AdminStaff = () => {
const navigate = useNavigate();
const { hasPermission } = useAuth();
const { hasPermission, user } = useAuth();
const [users, setUsers] = useState([]);
const [filteredUsers, setFilteredUsers] = useState([]);
const [loading, setLoading] = useState(true);
@@ -142,7 +142,7 @@ const AdminStaff = () => {
</p>
</div>
<div className="flex gap-3">
{hasPermission('users.invite') && (
{hasPermission('users.create') && (
<Button
onClick={() => setInviteDialogOpen(true)}
className="bg-[#664fa3] hover:bg-[#422268] text-white rounded-xl h-12 px-6"