mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-03-20 00:52:22 +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="/workspace/:slug/settings/:tab"
|
||||
element={<PrivateRoute Component={WorkspaceSettings} />}
|
||||
element={<ManagerRoute Component={WorkspaceSettings} />}
|
||||
/>
|
||||
<Route
|
||||
path="/workspace/:slug"
|
||||
|
|
|
@ -114,10 +114,8 @@ export default function ActiveWorkspaces() {
|
|||
: truncate(workspace.name, 20)}
|
||||
</p>
|
||||
</div>
|
||||
{isActive ||
|
||||
isHovered ||
|
||||
gearHover[workspace.id] ||
|
||||
user?.role === "default" ? (
|
||||
{(isActive || isHovered || gearHover[workspace.id]) &&
|
||||
user?.role !== "default" ? (
|
||||
<div className="flex items-center gap-x-2">
|
||||
<button
|
||||
type="button"
|
||||
|
|
Loading…
Add table
Reference in a new issue