Browse Source

Use the right permissions on BlogPosts page.

Resolve #9188
pull/9191/head
maliming 5 years ago
committed by GitHub
parent
commit
d064f296b2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/index.js

6
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/index.js

@ -28,14 +28,14 @@ $(function () {
items: [ items: [
{ {
text: l('Edit'), text: l('Edit'),
visible: abp.auth.isGranted('CmsKit.Blogs.Update'), visible: abp.auth.isGranted('CmsKit.BlogPosts.Update'),
action: function (data) { action: function (data) {
location.href = "BlogPosts/Update/" + data.record.id location.href = "BlogPosts/Update/" + data.record.id
} }
}, },
{ {
text: l('Delete'), text: l('Delete'),
visible: abp.auth.isGranted('CmsKit.Blogs.Delete'), visible: abp.auth.isGranted('CmsKit.BlogPosts.Delete'),
confirmMessage: function (data) { confirmMessage: function (data) {
return l("BlogPostDeletionConfirmationMessage", data.record.title) return l("BlogPostDeletionConfirmationMessage", data.record.title)
}, },
@ -83,4 +83,4 @@ $(function () {
e.preventDefault(); e.preventDefault();
window.location.href = "BlogPosts/Create" window.location.href = "BlogPosts/Create"
}); });
}); });

Loading…
Cancel
Save