Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Visible instead of RequiredPolicy for Blazor #8225

Merged
merged 2 commits into from
Mar 30, 2021
Merged

Conversation

berkansasmaz
Copy link
Member

The width and height of the replaced image are almost the same:

image


Also, maybe we can remove the code block in this section because none of these variables are used.

image

After this PR is approved, I will update the Commercial documents.

@hikalkan
Copy link
Member

policy names are used in the AbpCrudPageBase class:

protected virtual async Task SetPermissionsAsync()
{
if (CreatePolicyName != null)
{
HasCreatePermission = await AuthorizationService.IsGrantedAsync(CreatePolicyName);
}
if (UpdatePolicyName != null)
{
HasUpdatePermission = await AuthorizationService.IsGrantedAsync(UpdatePolicyName);
}
if (DeletePolicyName != null)
{
HasDeletePermission = await AuthorizationService.IsGrantedAsync(DeletePolicyName);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants