]> andersk Git - moira.git/commitdiff
Restrict all container renaming to dbadmin, not just top level containers.
authorzacheiss <zacheiss>
Thu, 3 Jan 2008 19:48:08 +0000 (19:48 +0000)
committerzacheiss <zacheiss>
Thu, 3 Jan 2008 19:48:08 +0000 (19:48 +0000)
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.099798 seconds and 5 git commands to generate.