Browse Source

Merge pull request #9191 from abpframework/maliming-patch-1

Use the right permissions on BlogPosts page.
pull/9197/head
Enis Necipoglu 5 years ago
committed by GitHub
parent
commit
7dd3f691fe
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: [
{
text: l('Edit'),
visible: abp.auth.isGranted('CmsKit.Blogs.Update'),
visible: abp.auth.isGranted('CmsKit.BlogPosts.Update'),
action: function (data) {
location.href = "BlogPosts/Update/" + data.record.id
}
},
{
text: l('Delete'),
visible: abp.auth.isGranted('CmsKit.Blogs.Delete'),
visible: abp.auth.isGranted('CmsKit.BlogPosts.Delete'),
confirmMessage: function (data) {
return l("BlogPostDeletionConfirmationMessage", data.record.title)
},
@ -83,4 +83,4 @@ $(function () {
e.preventDefault();
window.location.href = "BlogPosts/Create"
});
});
});

Loading…
Cancel
Save