369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
|
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
|
-
+
-
+
-
+
|
/* figure out inherited permissions */
memset(inherit, 0, sizeof(inherit));
if( strcmp(zLogin, "developer") ){
char *z1, *z2;
z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='developer'");
while( z1 && *z1 ){
inherit[0x7f & *(z1++)] = "<font color=\"red\">•</font>";
inherit[0x7f & *(z1++)] = "<font color=\"red\">•</font>";
}
free(z2);
}
if( strcmp(zLogin, "anonymous") ){
char *z1, *z2;
z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='anonymous'");
while( z1 && *z1 ){
inherit[0x7f & *(z1++)] = "<font color=\"blue\">•</font>";
inherit[0x7f & *(z1++)] = "<font color=\"blue\">•</font>";
}
free(z2);
}
if( strcmp(zLogin, "nobody") ){
char *z1, *z2;
z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='nobody'");
while( z1 && *z1 ){
inherit[0x7f & *(z1++)] = "<font color=\"green\">•</font>";
inherit[0x7f & *(z1++)] = "<font color=\"green\">•</font>";
}
free(z2);
}
/* Begin generating the page
*/
style_submenu_element("Cancel", "Cancel", "setup_ulist");
|
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
|
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
|
-
+
-
+
-
+
|
@ The <b>Setup</b> user can make arbitrary configuration changes.
@ An <b>Admin</b> user can add other users and change user privileges
@ and reset user passwords. Both automatically get all other privileges
@ listed below. Use these two settings with discretion.
@ </p></li>
@
@ <li><p>
@ The "<font color="green"><big>•</big></font>" mark indicates
@ The "<font color="green"><big>•</big></font>" mark indicates
@ the privileges of "nobody" that are available to all users
@ regardless of whether or not they are logged in.
@ </p></li>
@
@ <li><p>
@ The "<font color="blue"><big>•</big></font>" mark indicates
@ The "<font color="blue"><big>•</big></font>" mark indicates
@ the privileges of "anonymous" that are inherited by all logged-in users.
@ </p></li>
@
@ <li><p>
@ The "<font color="red"><big>•</big></font>" mark indicates
@ The "<font color="red"><big>•</big></font>" mark indicates
@ the privileges of "developer" that are inherited by all users with
@ the <b>Developer</b> privilege.
@ </p></li>
@
@ <li><p>
@ The <b>Delete</b> privilege give the user the ability to erase
@ wiki, tickets, and attachments that have been added by anonymous
|