Added an assertion to check the ```PermissionInterface``` compatibility