Merge pull request 'ribai-patch-1' (#6) from ribai-patch-1 into dev
Reviewed-on: https://gitea.maskantech.in/gitea_admin/docqube_frontend/pulls/6
This commit is contained in:
@@ -267,7 +267,7 @@ const RoleManagement = () => {
|
||||
const isDefault = row.is_default;
|
||||
|
||||
const isGlobalSystemRole = !row.tenant_id;
|
||||
const canModify = isCurrentUserSuperadmin || (!isDefault && !isGlobalSystemRole);
|
||||
const canModify = !isTenantAdmin && (isCurrentUserSuperadmin || (!isDefault && !isGlobalSystemRole));
|
||||
|
||||
return (
|
||||
<div className="flex gap-1">
|
||||
@@ -280,7 +280,7 @@ const RoleManagement = () => {
|
||||
>
|
||||
<Eye className="w-4 h-4" />
|
||||
</CustomButton>
|
||||
{!isSuperadminRole && (
|
||||
{!isTenantAdmin && !isSuperadminRole && (
|
||||
<>
|
||||
<CustomButton
|
||||
variant="text"
|
||||
@@ -330,7 +330,7 @@ const RoleManagement = () => {
|
||||
{isTenantAdmin && (
|
||||
<div className="mb-4 p-3 bg-blue-50 border border-blue-200 rounded-lg flex flex-wrap items-center justify-between gap-2 text-sm text-blue-800">
|
||||
<div className="flex items-center gap-2">
|
||||
<span>Roles and user permissions are centrally managed in Maskan SaaS Hub.</span>
|
||||
<span>Role creation, editing, and deletion are centrally managed in SaaS Hub.</span>
|
||||
</div>
|
||||
<a
|
||||
href={`${getSaasFrontendUrl()}/roles`}
|
||||
|
||||
@@ -708,7 +708,7 @@ export default function UserManagement() {
|
||||
{isTenantAdmin && (
|
||||
<div className="mb-6 p-3 bg-blue-50 border border-blue-200 rounded-lg flex flex-wrap items-center justify-between gap-2 text-sm text-blue-800">
|
||||
<div className="flex items-center gap-2">
|
||||
<span>User onboarding, invitations, and team assignments are centrally managed in Maskan SaaS Hub.</span>
|
||||
<span>User creation, editing, and deletion are centrally managed in SaaS Hub.</span>
|
||||
</div>
|
||||
<a
|
||||
href={`${getSaasFrontendUrl()}/users`}
|
||||
|
||||
Reference in New Issue
Block a user