Custom role can’t create permalink

Found that it works if I add the edit_posts capacity.

But Posts is now visible in Admin 🙁

At the same time, it also fixed a problem I had with Media upload: the user could never edit right after the upload.

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