Skip to content

Commit e340cf1

Browse files
remove permission based view
recent changes that were made always show the primary allocation to the end users even if they don't have the read permission.
1 parent 274ed6c commit e340cf1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

resources/scripts/components/server/ServerDetailsBlock.tsx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { bytesToHuman, megabytesToHuman } from '@/helpers';
66
import TitledGreyBox from '@/components/elements/TitledGreyBox';
77
import { ServerContext } from '@/state/server';
88
import CopyOnClick from '@/components/elements/CopyOnClick';
9-
import Can from '@/components/elements/Can';
109

1110
interface Stats {
1211
memory: number;
@@ -71,14 +70,12 @@ const ServerDetailsBlock = () => {
7170
/>
7271
 {!status ? 'Connecting...' : status}
7372
</p>
74-
<Can action={'allocation.read'}>
75-
<CopyOnClick text={primaryAllocation}>
76-
<p css={tw`text-xs mt-2`}>
77-
<FontAwesomeIcon icon={faEthernet} fixedWidth css={tw`mr-1`}/>
78-
<code css={tw`ml-1`}>{primaryAllocation}</code>
79-
</p>
80-
</CopyOnClick>
81-
</Can>
73+
<CopyOnClick text={primaryAllocation}>
74+
<p css={tw`text-xs mt-2`}>
75+
<FontAwesomeIcon icon={faEthernet} fixedWidth css={tw`mr-1`}/>
76+
<code css={tw`ml-1`}>{primaryAllocation}</code>
77+
</p>
78+
</CopyOnClick>
8279
<p css={tw`text-xs mt-2`}>
8380
<FontAwesomeIcon icon={faMicrochip} fixedWidth css={tw`mr-1`}/> {stats.cpu.toFixed(2)}%
8481
</p>

0 commit comments

Comments
 (0)