Hide peer logins on profiles and restrict view_all to published reports.

Login stays visible only to self/manager/HR; draft report docs stay department-head only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-14 15:20:49 +03:00
parent 555dbfb157
commit bf5310e489
5 changed files with 62 additions and 13 deletions
+1
View File
@@ -146,6 +146,7 @@ class EmployeeDetailTests(TestCase):
self.assertNotIn('Личный телефон', html)
self.assertNotIn('Интеграции', html)
self.assertNotIn(self.employee.personal_phone, html)
self.assertNotIn(self.employee.username, html)
def test_manager_chain_and_subordinates_shown(self):
login_2fa(self.client, self.staff)