[#12431] Added defaultconfig for permissions and cleaned up

See https://redmine.previousnext.com.au/issues/12431 for steps to test