check role for folder and categories