Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Show the actions to invite users, send magiclink, otp, and delete users for studio

Joshen Lim9ce24c1048fe
diff --git a/studio/components/interfaces/Authentication/Users/Users.tsx b/studio/components/interfaces/Authentication/Users/Users.tsx
index 39ebc652d08..51bf0dcb764 100644
--- a/studio/components/interfaces/Authentication/Users/Users.tsx
+++ b/studio/components/interfaces/Authentication/Users/Users.tsx
@@ -4,19 +4,16 @@ import { observer } from 'mobx-react-lite'
import { Button, Input, IconSearch, IconX } from '@supabase/ui'
import { PageContext } from 'pages/project/[ref]/auth/users'
-import { IS_PLATFORM } from 'lib/constants'
import UsersList from './UsersList'
import InviteUserModal from './InviteUserModal'
const Users = () => {
const PageState: any = useContext(PageContext)
- const inviteEnabled =
- IS_PLATFORM &&
- semver.gte(
- // @ts-ignore
- semver.coerce(PageState.projectKpsVersion || 'kps-v2.5.4'),
- semver.coerce('kps-v2.5.3')
- )
+ const inviteEnabled = semver.gte(
+ // @ts-ignore
+ semver.coerce(PageState.projectKpsVersion || 'kps-v2.5.4'),
+ semver.coerce('kps-v2.5.3')
+ )
useEffect(() => {
PageState.fetchData(1)
diff --git a/studio/components/interfaces/Authentication/Users/UsersListItem.tsx b/studio/components/interfaces/Authentication/Users/UsersListItem.tsx
index 8c0e03f084d..a504b94094e 100644
--- a/studio/components/interfaces/Authentication/Users/UsersListItem.tsx
+++ b/studio/components/interfaces/Authentication/Users/UsersListItem.tsx
@@ -5,7 +5,6 @@ import { Badge, Typography } from '@supabase/ui'
import Table from 'components/to-be-cleaned/Table'
import SimpleCodeBlock from 'components/to-be-cleaned/SimpleCodeBlock'
-import { IS_PLATFORM } from 'lib/constants'
import UserDropdown from './UserDropdown'
interface Props {
@@ -46,7 +45,9 @@ const UserListItem: FC<Props> = ({ user }) => {
{user.id}
</SimpleCodeBlock>
</Table.td>
- <Table.td className="text-right">{IS_PLATFORM && <UserDropdown user={user} />}</Table.td>
+ <Table.td className="text-right">
+ <UserDropdown user={user} />
+ </Table.td>
</Table.tr>
)
}