Changed resolve permissions to expect the perm mask directly instead of pulling it off a list item.