Let active profile owner be the source of truth for the session holder

This commit is contained in:
Theodor S. Midtlien
2026-09-16 10:37:59 +02:00
parent 3a2f6df038
commit a9fb48d80b
2 changed files with 20 additions and 15 deletions
+2 -2
View File
@@ -578,7 +578,7 @@ func readProfileName(path string) string {
}
// nolint: unused,unusedfunc
func readProfileOwner(path string) (ipcauth.Identity, error) {
func ReadProfileOwner(path string) (ipcauth.Identity, error) {
data, err := os.ReadFile(path)
if err != nil {
return ipcauth.Identity{}, err
@@ -603,7 +603,7 @@ func readProfileOwner(path string) (ipcauth.Identity, error) {
}
// nolint: unused,unusedfunc
func stampOwner(path string, owner ipcauth.Identity) error {
func StampOwner(path string, owner ipcauth.Identity) error {
data, err := os.ReadFile(path)
if err != nil {
return err