rapila/cms-base — comment on commit bdbaae1df8880cbeb1059ec58b3fb668a8b8cfb4
File: lib/model/PagePeer.php line 93
By sabberworm:

There is also a (currently private) method on the `Role` class which does these checks (but better). We should refactor it (possibly move it to `Right`) instead of re-inventing the wheel.