Change authorization policy for EditCustomer method
Updated the authorization policy for the `EditCustomer` method in the `AdvertisementController` to allow access only to users with the "Customer" role, replacing the previous "Power User" role requirement.
This commit is contained in:
parent
555273aed1
commit
fafbc55732
@ -776,7 +776,7 @@ namespace gehGassi.Web.Controllers
|
||||
/// </summary>
|
||||
/// <param name="model">Model</param>
|
||||
/// <returns>Json</returns>
|
||||
[Authorize(Policy = Policies.PowerUserOnly)]
|
||||
[Authorize(Policy = Policies.CustomerOnly)]
|
||||
[HasPermission(Permission.AdvertisementsManage, Permission.AdvertisementsEdit)]
|
||||
[CustomerAuthorize("CustomerId")]
|
||||
[ValidateAntiForgeryToken]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user