-
Notifications
You must be signed in to change notification settings - Fork 3.2k
chore: add permission controls #12775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| <el-button class="margin-button" @click="openDownloadDialog" icon="Download"> | ||
| {{ $t('commons.button.download') }} | ||
| </el-button> | ||
| <el-button class="margin-button" @click="onClean" icon="Delete"> | ||
| <el-button v-permission="'container_manage'" class="margin-button" @click="onClean" icon="Delete"> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This component is used outside container pages (including website and database log screens), but the cleanup button now requires Useful? React with 👍 / 👎. |
||
| {{ $t('commons.button.clean') }} | ||
| </el-button> | ||
| </div> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new hardcoded
v-permission="'app_manage'"on start/stop/restart couples this shared component to App Store permissions, butAppStatusis reused in non-App-Store pages (for example website and database views). In those routes, users with module manage rights (e.g. website/database) but withoutapp_managewill now have these controls disabled, which is a functional regression for service operations outside the app module.Useful? React with 👍 / 👎.