cleaned up redundant code for resolving map permissions

This has bothered me for a while, every time I look in this file.  There's just no need for two nearly identical functions.