diff options
author | crupest <crupest@outlook.com> | 2020-11-22 09:53:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 09:53:31 +0800 |
commit | ef9489a8c1084d33796da366c685bc24550eafbd (patch) | |
tree | 59227246f0964dcdc9b735d64a0397a9dd3a58bf /FrontEnd/src/app/App.tsx | |
parent | ffa5d76316ccec4edc307d0432ef10fb18436c63 (diff) | |
parent | f451000f281a4c9c44caf4dc835d3b2fdb55fa81 (diff) | |
download | timeline-ef9489a8c1084d33796da366c685bc24550eafbd.tar.gz timeline-ef9489a8c1084d33796da366c685bc24550eafbd.tar.bz2 timeline-ef9489a8c1084d33796da366c685bc24550eafbd.zip |
Merge pull request #189 from crupest/admin
Refactor front end to use the new permission system. Enhance admin page.
Diffstat (limited to 'FrontEnd/src/app/App.tsx')
-rw-r--r-- | FrontEnd/src/app/App.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FrontEnd/src/app/App.tsx b/FrontEnd/src/app/App.tsx index 01b1883b..6cdf2434 100644 --- a/FrontEnd/src/app/App.tsx +++ b/FrontEnd/src/app/App.tsx @@ -58,7 +58,7 @@ const App: React.FC = () => { <Route path="/users/:username"> <User /> </Route> - {user && user.administrator && ( + {user && user.hasAdministrationPermission && ( <Route path="/admin"> <LazyAdmin user={user} /> </Route> |