fixed a query issue with week-view
roles, capabilities, and branch_editor restrictions