reverted to version officially removed 0.7.6 with working hasPermission methods