Add return value

Function should return the $result of the access level check