Fixing a bug: we were incorrectly removing specific layer permissions from resource base instead than from layer