]> andersk Git - moira.git/blobdiff - server/qaccess.pc
Restrict all container renaming to dbadmin, not just top level containers.
[moira.git] / server / qaccess.pc
index 8a303e5096194ee3c4a60889646a965173437fdb..4c0b58c6ba0d9677ad0ad50a89ff56a348c76f8c 100644 (file)
@@ -744,12 +744,11 @@ int access_container(struct query *q, char *argv[], client *cl)
    /* trim off the trailing spaces */
    strcpy(name, strtrim(name));
 
-  /* if the query is update_container and the containers is to be renamed
-   * and it is a top-level container, only dbadmin can do it */
+  /* Only dbadmin can rename containers. */
   if (!strcmp(q->shortname, "ucon"))
   {
     newname = argv[1];
-    if (strcmp(name, newname) && strchr(name, '/') == NULL)
+    if (strcmp(name, newname))
       return MR_PERM;
   }
 
This page took 0.039866 seconds and 4 git commands to generate.