mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-03-21 01:22:23 +00:00
Fix default role visibility permissions (#776)
This commit is contained in:
parent
e99c74aec1
commit
424ca142c1
2 changed files with 3 additions and 5 deletions
|
@ -59,7 +59,7 @@ export default function App() {
|
||||||
<Route path="/login" element={<Login />} />
|
<Route path="/login" element={<Login />} />
|
||||||
<Route
|
<Route
|
||||||
path="/workspace/:slug/settings/:tab"
|
path="/workspace/:slug/settings/:tab"
|
||||||
element={<PrivateRoute Component={WorkspaceSettings} />}
|
element={<ManagerRoute Component={WorkspaceSettings} />}
|
||||||
/>
|
/>
|
||||||
<Route
|
<Route
|
||||||
path="/workspace/:slug"
|
path="/workspace/:slug"
|
||||||
|
|
|
@ -114,10 +114,8 @@ export default function ActiveWorkspaces() {
|
||||||
: truncate(workspace.name, 20)}
|
: truncate(workspace.name, 20)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{isActive ||
|
{(isActive || isHovered || gearHover[workspace.id]) &&
|
||||||
isHovered ||
|
user?.role !== "default" ? (
|
||||||
gearHover[workspace.id] ||
|
|
||||||
user?.role === "default" ? (
|
|
||||||
<div className="flex items-center gap-x-2">
|
<div className="flex items-center gap-x-2">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
Loading…
Add table
Reference in a new issue