mirror of
https://github.com/postmannen/ctrl.git
synced 2025-03-15 10:57:42 +00:00
loading nodeAcl from file
This commit is contained in:
parent
ba39e241e4
commit
aafa11aa25
1 changed files with 6 additions and 0 deletions
|
@ -91,6 +91,12 @@ func newNodeAcl(c *Configuration) *nodeAcl {
|
||||||
filePath: filepath.Join(c.DatabaseFolder, "acl.txt"),
|
filePath: filepath.Join(c.DatabaseFolder, "acl.txt"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err := n.loadFromFile()
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("error: loading acl's from file: %v\n", err)
|
||||||
|
// os.Exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
return &n
|
return &n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue