- 🇧🇪Belgium Frederikvho Belgium
This code improvement works for me, +1 RTBC
In domain_entity_entity_access
there is an unnecessary User::load
to check whether the user has the administrator
role. The AccountInterface
has the getRoles
method available.
Additionally, this can also cause an error in certain circumstances (batch processing) as the User
may be null:
Error: Call to a member function hasRole() on null in domain_entity_entity_access() (line 461 of /modules/contrib/domain_entity/domain_entity.module)
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This code improvement works for me, +1 RTBC