[MM-61928] Add clarifying note on personal token permissions (#29585)

Этот коммит содержится в:
Guillermo Vayá
2025-01-27 17:31:14 +01:00
коммит произвёл GitHub
родитель b26c43e716
Коммит 6cc85c9e7d
3 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@@ -234,6 +234,16 @@ export default class ManageRolesModal extends React.PureComponent<Props, State>
/>
</label>
</div>
<p>
<FormattedMessage
id='admin.manage_roles.additionalRoles_warning'
defaultMessage='<strong>Note:</strong><span>The permissions granted above apply to the account as a whole, regardless of whether it is authenticated using a session cookie or a personal access token. For example, selecting post:all will allow the account to post to channels it is not a member of, even without using a personal access token.</span>'
values={{
strong: (text) => <strong>{text}</strong>,
span: (text) => <span className='pt-2 pb-2 light'>{text}</span>,
}}
/>
</p>
</div>
);
}

Просмотреть файл

@@ -1489,6 +1489,7 @@
"admin.logs.title": "Server Logs",
"admin.logs.Warn": "Warn",
"admin.manage_roles.additionalRoles": "Select additional permissions for the account. <link>Read more about roles and permissions</link>.",
"admin.manage_roles.additionalRoles_warning": "<strong>Note:</strong><span>The permissions granted above apply to the account as a whole, regardless of whether it is authenticated using a session cookie or a personal access token. For example, selecting post:all will allow the account to post to channels it is not a member of, even without using a personal access token.</span>",
"admin.manage_roles.allowUserAccessTokens": "Allow this account to generate <link>personal access tokens</link>.",
"admin.manage_roles.allowUserAccessTokensDesc": "Removing this permission doesn't delete existing tokens. To delete them, go to the user's Manage Tokens menu.",
"admin.manage_roles.botAdditionalRoles": "Select additional permissions for the account. <link>Read more about roles and permissions</link>.",

Просмотреть файл

@@ -966,6 +966,9 @@
strong {
margin-right: 10px;
}
p strong {
margin-right: 5px;
}
}
.member-row-lone-padding {