Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32162087
D15245.1765044515.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D15245.1765044515.diff
View Options
diff --git a/web/modals/threads/settings/thread-settings-general-tab.react.js b/web/modals/threads/settings/thread-settings-general-tab.react.js
--- a/web/modals/threads/settings/thread-settings-general-tab.react.js
+++ b/web/modals/threads/settings/thread-settings-general-tab.react.js
@@ -120,6 +120,13 @@
threadSettingsOperationInProgress,
]);
+ const canEditThreadDescription = useThreadHasPermission(
+ threadInfo,
+ threadPermissions.EDIT_THREAD_DESCRIPTION,
+ );
+
+ const threadDescriptionInputDisabled = !canEditThreadDescription;
+
const descriptionSection = React.useMemo(() => {
if (
!threadSpecs[threadInfo.type].protocol().supportedThreadSettings
@@ -135,13 +142,17 @@
value={queuedChanges.description ?? threadInfo.description ?? ''}
placeholder="Chat description"
onChange={onChangeDescription}
- disabled={threadSettingsOperationInProgress}
+ disabled={
+ threadSettingsOperationInProgress ||
+ threadDescriptionInputDisabled
+ }
rows={3}
/>
</div>
</div>
);
}, [
+ threadDescriptionInputDisabled,
onChangeDescription,
queuedChanges.description,
threadInfo.description,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 6:08 PM (20 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5839998
Default Alt Text
D15245.1765044515.diff (1 KB)
Attached To
Mode
D15245: [web] fix permission check for description
Attached
Detach File
Event Timeline
Log In to Comment