From 9a261d37a693aee7e600d0fd9343e8da5d3f2bb5 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 12 Jan 1999 22:04:49 +0000 Subject: don't show create printer entries on printers page if you don't have have write access. --- source/web/swat.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/web/swat.c b/source/web/swat.c index 2f135747abc..44cbdf66e46 100644 --- a/source/web/swat.c +++ b/source/web/swat.c @@ -897,11 +897,13 @@ static void printers_page(void) } printf(""); printf("\n"); - printf("\n"); - printf("\n"); - printf("\n"); - printf("
"); + if (have_write_access) { + printf("\n"); + printf("\n"); + printf("\n"); + printf("
"); + } if (snum >= 0) { -- cgit