Loading
task: #3634866 Give a reason when access to the Generate media with AI page is denied
Issue: https://www.drupal.org/project/ai_media/issues/3634866
The access check used AccessResult::allowedIf() without a reason, so the 403 log entry was empty. It now says whether the generate media with ai permission is missing or no media type has an AI generator the user can use now.
AI-Generated: Yes
Checkpoints:
- File an issue
- Addition/Change/Update/Fix
- Testing to ensure no regression
- Automated unit testing coverage
- Automated functional testing coverage
- UX/UI designer responsibilities
- Readability
- Accessibility
- Performance
- Security
- Developer Documentation
- User Guide Documentation
- Reviewed by human
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Release notes snippet
- Release
Edited by Rajab Natshah