From 123191370115269dcf3db45b8f8d46602adeb169 Mon Sep 17 00:00:00 2001 From: Engincan VESKE Date: Mon, 1 Nov 2021 11:22:11 +0300 Subject: [PATCH] Add authorize attribute to the PaymentRequests page. --- .../Pages/Payment/Requests/Index.razor | 10 +++------- .../Pages/Payment/Requests/Index.razor.cs | 3 --- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/modules/payment/src/Payment.Admin.Blazor/Pages/Payment/Requests/Index.razor b/modules/payment/src/Payment.Admin.Blazor/Pages/Payment/Requests/Index.razor index 1a32f6f..4075632 100644 --- a/modules/payment/src/Payment.Admin.Blazor/Pages/Payment/Requests/Index.razor +++ b/modules/payment/src/Payment.Admin.Blazor/Pages/Payment/Requests/Index.razor @@ -1,9 +1,9 @@ @page "/Payment/Requests" -@using Volo.Abp.AspNetCore.Components.Web.Theming.Layout +@using Microsoft.AspNetCore.Authorization +@attribute [Authorize(PaymentAdminPermissions.Request.Default)] @using global::Payment.Admin.Payments @using global::Payment.PaymentRequests -@using Volo.Abp.Application.Dtos -@using Blazorise +@using global::Payment.Admin.Permissions @using Volo.Abp.BlazoriseUI.Components.ObjectExtending @inherits PaymentAdminComponentBase @@ -63,10 +63,6 @@ Field="ProductName" Caption="@L["ProductName"]"> - - diff --git a/modules/payment/src/Payment.Admin.Blazor/Pages/Payment/Requests/Index.razor.cs b/modules/payment/src/Payment.Admin.Blazor/Pages/Payment/Requests/Index.razor.cs index cc122cd..b30ef9d 100644 --- a/modules/payment/src/Payment.Admin.Blazor/Pages/Payment/Requests/Index.razor.cs +++ b/modules/payment/src/Payment.Admin.Blazor/Pages/Payment/Requests/Index.razor.cs @@ -5,12 +5,9 @@ using System.Threading.Tasks; using Blazorise; using Blazorise.DataGrid; using Microsoft.AspNetCore.Components; -using Microsoft.AspNetCore.Components.Web; using Payment.Admin.Payments; using Volo.Abp.Application.Dtos; using Payment.PaymentRequests; -using Volo.Abp.AspNetCore.Components.Web.Extensibility.TableColumns; -using Volo.Abp.BlazoriseUI.Components; namespace Payment.Admin.Pages.Payment.Requests {