mendersoftware / mender-server

Other
2 stars 10 forks source link

fix: remove Audit log tab when tenant does not have audit log capability #91

Closed mineralsfree closed 1 week ago

mineralsfree commented 2 weeks ago

Ticket: MEN-7600 Changelog: None

mineralsfree commented 1 week ago

I slightly wonder if a user with auditlog access, but a role that shouldn't allow it will also see the entry (they shouldn't)...

Isn't canAuditlog be false in that case?

mzedel commented 1 week ago

Isn't canAuditlog be false in that case?

Exactly, but it should be the case already (in this test).

mzedel commented 1 week ago

Argh, I'm sorry for wasting your time @mineralsfree we made this change specifically in MEN-5414 and I completely forgot about it 😞.