This project is read-only.

Problem with blog post edit

Jun 3, 2011 at 10:03 AM

Hi All,

I got problem with post editing.


I mean, for example

user "A" created one post on his blog and he is having editor role.

Now administrator user edit that content and update the post. So, Here I am getting error.

I can't view that post and delete.



Jun 3, 2011 at 10:07 AM

For this also i got solution.

But, I don't know is it best or not.

The problem is, if admin user changes the content updated. that time post.Author is assigned with current user name

post.Author = ddlAuthor.SelectedValue; in this admin/Pages/Add_entry.aspx.cs at line 166


So, I just made small change like this

        if (string.IsNullOrEmpty(post.Author))
        post.Author = ddlAuthor.SelectedValue;

May be it works fine!