Skip to content

fix agent settings permissions#670

Open
sara2398 wants to merge 1 commit into
mainfrom
codex/fix-agent-settings-permissions-603
Open

fix agent settings permissions#670
sara2398 wants to merge 1 commit into
mainfrom
codex/fix-agent-settings-permissions-603

Conversation

@sara2398

Copy link
Copy Markdown
Collaborator

Fixes #603

Summary

  • Keep manage users' existing settings/approval access unchanged.
  • For use-only users, hide management actions instead of showing disabled controls.
  • Make settings, OpenClaw settings, approvals, skills, workspace, and awareness actions read-only for use-only users.

Validation

  • git diff --check
  • Deployed and verified on test env

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf7560926b

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

<div style={{ display: 'flex', gap: '10px', marginTop: '20px' }}>
<button className="btn btn-secondary" onClick={() => setActiveTab('chat')}>{t('agent.actions.chat')}</button>
<button className="btn btn-secondary" onClick={() => setActiveTab('settings')}>{t('agent.tabs.settings')}</button>
{canManage && <button className="btn btn-secondary" onClick={() => setActiveTab('settings')}>{t('agent.tabs.settings')}</button>}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the read-only settings tab reachable

For use access, the tab filter above still removes settings from the tab bar, and the top settings button only navigates to /settings where useAgentDetailRoute defaults to the status tab. With this new canManage guard, use-only users lose the only visible control that selected the actual settings tab, so the read-only SettingsTab/OpenClawSettings work added in this change is not discoverable unless the user manually edits the hash to #settings.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

普通成员,对其他人创建的并且设置公司范围可见但只能使用的智能体,也有“设置”等权限。

1 participant