|
|
|
@ -145,7 +145,7 @@ namespace Yavsc.Controllers
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The comment.</returns>
|
|
|
|
/// <returns>The comment.</returns>
|
|
|
|
/// <param name="cmtid">Cmtid.</param>
|
|
|
|
/// <param name="cmtid">Cmtid.</param>
|
|
|
|
[Authorize]
|
|
|
|
[Authorize(Roles="Blogger")]
|
|
|
|
public ActionResult RemoveComment (long cmtid)
|
|
|
|
public ActionResult RemoveComment (long cmtid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
long postid = BlogManager.RemoveComment (cmtid);
|
|
|
|
long postid = BlogManager.RemoveComment (cmtid);
|
|
|
|
@ -257,7 +257,7 @@ namespace Yavsc.Controllers
|
|
|
|
/// Post the specified title.
|
|
|
|
/// Post the specified title.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="title">Title.</param>
|
|
|
|
/// <param name="title">Title.</param>
|
|
|
|
[Authorize]
|
|
|
|
[Authorize(Roles="Blogger")]
|
|
|
|
public ActionResult Post (string title)
|
|
|
|
public ActionResult Post (string title)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string un = Membership.GetUser ().UserName;
|
|
|
|
string un = Membership.GetUser ().UserName;
|
|
|
|
@ -279,7 +279,7 @@ namespace Yavsc.Controllers
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The edit.</returns>
|
|
|
|
/// <returns>The edit.</returns>
|
|
|
|
/// <param name="model">Model.</param>
|
|
|
|
/// <param name="model">Model.</param>
|
|
|
|
[Authorize]
|
|
|
|
[Authorize(Roles="Blogger")]
|
|
|
|
public ActionResult ValidateEdit (BlogEntry model)
|
|
|
|
public ActionResult ValidateEdit (BlogEntry model)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ViewData ["SiteName"] = sitename;
|
|
|
|
ViewData ["SiteName"] = sitename;
|
|
|
|
@ -311,7 +311,7 @@ namespace Yavsc.Controllers
|
|
|
|
/// Edit the specified bill
|
|
|
|
/// Edit the specified bill
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id">Identifier.</param>
|
|
|
|
/// <param name="id">Identifier.</param>
|
|
|
|
[Authorize]
|
|
|
|
[Authorize(Roles="Blogger")]
|
|
|
|
public ActionResult Edit (long postid)
|
|
|
|
public ActionResult Edit (long postid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
@ -361,7 +361,7 @@ namespace Yavsc.Controllers
|
|
|
|
/// <param name="user">User.</param>
|
|
|
|
/// <param name="user">User.</param>
|
|
|
|
/// <param name="returnUrl">Return URL.</param>
|
|
|
|
/// <param name="returnUrl">Return URL.</param>
|
|
|
|
/// <param name="confirm">If set to <c>true</c> confirm.</param>
|
|
|
|
/// <param name="confirm">If set to <c>true</c> confirm.</param>
|
|
|
|
[Authorize]
|
|
|
|
[Authorize(Roles="Blogger")]
|
|
|
|
public ActionResult RemoveTitle (string user, string title, string returnUrl, bool confirm = false)
|
|
|
|
public ActionResult RemoveTitle (string user, string title, string returnUrl, bool confirm = false)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (returnUrl == null)
|
|
|
|
if (returnUrl == null)
|
|
|
|
@ -389,7 +389,7 @@ namespace Yavsc.Controllers
|
|
|
|
/// <param name="id">Identifier.</param>
|
|
|
|
/// <param name="id">Identifier.</param>
|
|
|
|
/// <param name="returnUrl">Return URL.</param>
|
|
|
|
/// <param name="returnUrl">Return URL.</param>
|
|
|
|
/// <param name="confirm">If set to <c>true</c> confirm.</param>
|
|
|
|
/// <param name="confirm">If set to <c>true</c> confirm.</param>
|
|
|
|
[Authorize]
|
|
|
|
[Authorize(Roles="Blogger")]
|
|
|
|
public ActionResult RemovePost (long postid, string returnUrl, bool confirm = false)
|
|
|
|
public ActionResult RemovePost (long postid, string returnUrl, bool confirm = false)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// ensures the access control
|
|
|
|
// ensures the access control
|
|
|
|
|