diff options
author | Herb Lewis <herb@samba.org> | 1999-01-12 22:04:49 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 1999-01-12 22:04:49 +0000 |
commit | 9a261d37a693aee7e600d0fd9343e8da5d3f2bb5 (patch) | |
tree | bbb012fc23c4d55573f2144ac61d01ad44906294 /source | |
parent | 136abacbc9b5ab552c9488aac833fbadfa6ebd4c (diff) | |
download | samba-9a261d37a693aee7e600d0fd9343e8da5d3f2bb5.tar.gz samba-9a261d37a693aee7e600d0fd9343e8da5d3f2bb5.tar.xz samba-9a261d37a693aee7e600d0fd9343e8da5d3f2bb5.zip |
don't show create printer entries on printers page if you don't have have
write access.
Diffstat (limited to 'source')
-rw-r--r-- | source/web/swat.c | 10 |
1 files 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("</tr>"); printf("</table>\n"); - printf("<table>\n"); - printf("<tr><td><input type=submit name=createshare value=\"Create Printer\"></td>\n"); - printf("<td><input type=text size=30 name=newshare></td></tr>\n"); - printf("</table>"); + if (have_write_access) { + printf("<table>\n"); + printf("<tr><td><input type=submit name=createshare value=\"Create Printer\"></td>\n"); + printf("<td><input type=text size=30 name=newshare></td></tr>\n"); + printf("</table>"); + } if (snum >= 0) { |