import checkPerm from CMFCore.utils