Added return on the getPermissions method