Fixed #919 (Permission problem in agenda)