kPermAllowSession is a runtime permission, so it will not be returned in this function (only stored permission is returned). It used to be an enum, but there are problems with enum, for example when we need to write a permission string into storage, a conversion between enum value <-> permission string should be done.