fix authorize in tasks and projects