used static instead of new $class

Signed-off-by: Andreas Heiberg <git@andreas-heiberg.com>
cleaned up getToCheck()

Signed-off-by: Andreas Heiberg <git@andreas-heiberg.com>
is ->hasRole can ->hasPermission

Signed-off-by: Andreas Heiberg <git@andreas-heiberg.com>
updated changelog

Signed-off-by: Andreas Heiberg <git@andreas-heiberg.com>