add getpermission to permission class