diff options
Diffstat (limited to 'web/source')
| -rw-r--r-- | web/source/settings/index.js | 2 | ||||
| -rw-r--r-- | web/source/settings/user/profile.js | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/web/source/settings/index.js b/web/source/settings/index.js index 812fff6b4..1be4f4a31 100644 --- a/web/source/settings/index.js +++ b/web/source/settings/index.js @@ -55,7 +55,7 @@ const nav = {  const { sidebar, panelRouter } = require("./lib/get-views")(nav);  function App({ account }) { -	const isAdmin = account.role == "admin"; +	const isAdmin = account.role.name == "admin";  	const [logoutQuery] = query.useLogoutMutation();  	return ( diff --git a/web/source/settings/user/profile.js b/web/source/settings/user/profile.js index b2d2d25b3..c48ee0933 100644 --- a/web/source/settings/user/profile.js +++ b/web/source/settings/user/profile.js @@ -90,7 +90,7 @@ function UserProfileForm({ data: profile }) {  					header={form.header.previewValue ?? profile.header}  					display_name={form.displayName.value ?? profile.username}  					username={profile.username} -					role={profile.role} +					role={profile.role.name}  				/>  				<div className="files">  					<div>  | 
