Make permission plugin work with roles partially