user_has_cap filter allows “edit_others_posts” but not is not allowing updating/publishing

user_has_cap filter allows “edit_others_posts” but not is not allowing updating/publishing

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)