Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor herd_yearly_report authorization check
Updated the authorization logic in the herd_yearly_report function to streamline permission checks. The previous check for user editing rights was simplified by directly using the herd ID, enhancing code clarity and maintainability. This change ensures that only authorized users can access or create yearly reports for herds, improving security and user experience.
- Loading branch information