--- a/access/access.go Thu Sep 12 00:14:32 2019 -0500
+++ b/access/access.go Thu Sep 12 02:31:11 2019 -0500
@@ -10,13 +10,20 @@
+func Setup(adminRepo string) error { + adminRepoPath = adminRepo // Refresh will try to reload the casbin model and policies followed by SSH
// keys. If there is an error it's possible that the casbin model and polcies
// could have been updated but the ssh keys were not.
-func Refresh(adminRepoPath string) error {
defer accessLock.Unlock()
--- a/serve/command.go Thu Sep 12 00:14:32 2019 -0500
+++ b/serve/command.go Thu Sep 12 02:31:11 2019 -0500
@@ -15,7 +15,7 @@
func (c *Command) Run(g *globals.Globals) error {
adminRepoPath := filepath.Join(g.ReposPath, g.AdminRepo)
- if err := access.Refresh(adminRepoPath); err != nil {
+ if err := access.Setup(adminRepoPath); err != nil {