File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -375,15 +375,20 @@ export const LinkShortener: React.FC = () => {
375375 >
376376 Add New Link
377377 </ Button >
378- < Button
379- leftSection = { < IconEdit size = { 14 } /> }
380- onClick = { ( ) => {
381- navigate ( '/linkry/admin' ) ;
382- } }
383- color = "teal"
378+ < AuthGuard
379+ resourceDef = { { service : 'core' , validRoles : [ AppRoles . LINKS_ADMIN ] } }
380+ isAppShell = { false }
384381 >
385- Admin Panel
386- </ Button >
382+ < Button
383+ leftSection = { < IconEdit size = { 14 } /> }
384+ onClick = { ( ) => {
385+ navigate ( '/linkry/admin' ) ;
386+ } }
387+ color = "teal"
388+ >
389+ Admin Panel
390+ </ Button >
391+ </ AuthGuard >
387392 </ div >
388393
389394 < Tabs
@@ -396,7 +401,7 @@ export const LinkShortener: React.FC = () => {
396401 } }
397402 >
398403 < Tabs . List >
399- < Tabs . Tab value = "owned" > Owned Links</ Tabs . Tab >
404+ < Tabs . Tab value = "owned" > My Links</ Tabs . Tab >
400405 < Tabs . Tab value = "delegated" > Delegated Links</ Tabs . Tab >
401406 </ Tabs . List >
402407
You can’t perform that action at this time.
0 commit comments