Implemented authorization for Tasks