cleaned up redundant code for resolving map permissions