]> andersk Git - moira.git/blobdiff - clients/moira/lists.c
Call mr_access() in AddList so we can bomb out before asking the user
[moira.git] / clients / moira / lists.c
index a398ef02b8af7771aa63945b2637593e4ecd7c4e..9fb95f1eadb6cb6380cc58ea56842ea59a4e9c2f 100644 (file)
@@ -442,6 +442,12 @@ int AddList(int argc, char **argv)
       return SUB_ERROR;
     }
 
+  if (status = mr_access("add_list", L_MODTIME, SetDefaults(info, argv[1]))) 
+    {
+      com_err(program_name, status, " in AddList.");
+      return SUB_ERROR;
+    }
+
   /*
    * If the listname is less than 8 characters, make sure it doesn't
    * collide with a username.
This page took 0.036286 seconds and 4 git commands to generate.