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

This commit is contained in:
Theodor S. Midtlien
2026-09-07 15:17:11 +02:00
parent 555f1bf283
commit c02642abd5
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