Skip to content
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

HistoryController add @Secured #5885

Closed

Conversation

CherishCai
Copy link
Contributor

@CherishCai CherishCai commented May 28, 2021

feat #5884

@CherishCai CherishCai force-pushed the develop-feat-history-secured branch from 43000ba to b36c24c Compare May 28, 2021 08:06
@@ -74,7 +78,11 @@
* @return history config info
*/
@GetMapping
public ConfigHistoryInfo getConfigHistoryInfo(@RequestParam("nid") Long nid) {
@Secured(action = ActionTypes.READ, parser = ConfigResourceParser.class)
public ConfigHistoryInfo getConfigHistoryInfo(@RequestParam("dataId") String dataId, // for @Secured
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please do not change the paramters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

persistService find detailConfigHistory add params dataId, group, tenant

@@ -86,7 +94,11 @@ public ConfigHistoryInfo getConfigHistoryInfo(@RequestParam("nid") Long nid) {
* @since 1.4.0
*/
@GetMapping(value = "/previous")
public ConfigHistoryInfo getPreviousConfigHistoryInfo(@RequestParam("id") Long id) {
@Secured(action = ActionTypes.READ, parser = ConfigResourceParser.class)
public ConfigHistoryInfo getPreviousConfigHistoryInfo(@RequestParam("dataId") String dataId, // for @Secured
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please do not change the paramters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

persistService find detailConfigHistory add params dataId, group, tenant

@KomachiSion KomachiSion added the pending On hold due to dependency or release label May 31, 2021
@CherishCai
Copy link
Contributor Author

关闭 PR,期望社区商议更优实现

@CherishCai CherishCai closed this Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending On hold due to dependency or release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants