*fixed message, if authentication fails
*fixed sorting function for head documents #2717
*hid actionbar from user who are not allowed to modify the current document #2828