diff --git a/src/Yavsc/Views/Blogspot/Details.cshtml b/src/Yavsc/Views/Blogspot/Details.cshtml
index 26aa1d24b..e610197ab 100644
--- a/src/Yavsc/Views/Blogspot/Details.cshtml
+++ b/src/Yavsc/Views/Blogspot/Details.cshtml
@@ -112,7 +112,7 @@ $('span.field-validation-valid[data-valmsg-for="Content"]').html(
}
-@if ((await AuthorizationService.AuthorizeAsync(User, Model, new EditRequirement())).IsSuccess) {
+@if ((await AuthorizationService.AuthorizeAsync(User, Model, new EditRequirement())).Succeeded) {
Edit
}
Back to List
diff --git a/src/Yavsc/Views/Blogspot/Index.cshtml b/src/Yavsc/Views/Blogspot/Index.cshtml
index 7c7bad7e2..e111eafdf 100644
--- a/src/Yavsc/Views/Blogspot/Index.cshtml
+++ b/src/Yavsc/Views/Blogspot/Index.cshtml
@@ -45,6 +45,6 @@
}
- @await Component.InvokeAsync("BlogIndex",User.GetUserId()??"_anonymous_",0,25)
+ @await Component.InvokeAsync("BlogIndex",new{ id = User.GetUserId() ?? "_anonymous_" ) }
diff --git a/src/Yavsc/Views/Blogspot/Title.cshtml b/src/Yavsc/Views/Blogspot/Title.cshtml
index e1c1e3e86..7f07299ef 100644
--- a/src/Yavsc/Views/Blogspot/Title.cshtml
+++ b/src/Yavsc/Views/Blogspot/Title.cshtml
@@ -41,12 +41,12 @@
|
- @if (await AuthorizationService.AuthorizeAsync(User, item, new ViewRequirement())) {
+ @if ((await AuthorizationService.AuthorizeAsync(User, item, new ViewRequirement())).Succeeded) {
-
Details
}
- @if (await AuthorizationService.AuthorizeAsync(User, item, new EditRequirement())) {
+ @if ((await AuthorizationService.AuthorizeAsync(User, item, new EditRequirement())).Succeeded) {
- Edit
- Delete
|