Branch: Tag:

2001-01-29

2001-01-29 09:10:01 by Per Hedbor <ph@opera.com>

Set initial permissions on the databases 'local' and 'shared' to write for new configurations, and the permission for 'docs' to read if 'docs' exists.

Rev: server/base_server/roxen.pike:1.615
Rev: server/config_interface/sites/create_site.pike:1.7
Rev: server/config_interface/sites/create_site_with_template.pike:1.16

4:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.614 2001/01/29 09:05:44 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.615 2001/01/29 09:10:01 per Exp $";      // Used when running threaded to find out which thread is the backend thread,   // for debug purposes only.
2698:    config, (bt ? ":\n"+bt : "\n"));    continue;    } +  function sp = master()->resolv("DBManager.set_permission"); +  catch(sp( "docs", conf, 1 )); // the docs db can be non-existant +  sp( "shared", conf, 2 ); +  sp( "local", conf, 2 );    }    if(err = catch    {