summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-09-13 01:18:01 +0000
committerTim Potter <tpot@samba.org>2000-09-13 01:18:01 +0000
commit6ab4544738ed91e1d9f88a2791c1799333f64dae (patch)
tree4fe940cbac66a8b49caebe633e791764438bb7fc
parentf622de81785df58e9431a6d53a8b593734a62a7b (diff)
downloadsamba-6ab4544738ed91e1d9f88a2791c1799333f64dae.tar.gz
samba-6ab4544738ed91e1d9f88a2791c1799333f64dae.tar.bz2
samba-6ab4544738ed91e1d9f88a2791c1799333f64dae.zip
Added missing break statement for manage documents check in
print_access_check() function. (This used to be commit 318ead783c842f2a557207690afd522b3d28e077)
-rw-r--r--source3/printing/nt_printing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 9e4f1c2fd5..a7ca487d00 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -2314,9 +2314,11 @@ BOOL print_access_check(struct current_user *user, int snum, int access_type)
break;
case JOB_ACCESS_ADMINISTER:
required_access = PRINTER_ACE_MANAGE_DOCUMENTS;
+ break;
default:
DEBUG(0, ("invalid value passed to print_access_check()\n"));
- return False;
+ result = False;
+ goto done;
}
/* The ACE for Full Control in a printer security descriptor