[open-ils-commits] r11566 - trunk/Open-ILS/src/c-apps
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 15 01:53:00 EST 2008
Author: miker
Date: 2008-12-15 01:52:57 -0500 (Mon, 15 Dec 2008)
New Revision: 11566
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
report lack of permissions to client
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-15 06:36:26 UTC (rev 11565)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2008-12-15 06:52:57 UTC (rev 11566)
@@ -1407,6 +1407,19 @@
if(!verifyObjectPCRUD(ctx, obj)) {
jsonObjectFree(obj);
*err = -1;
+
+ growing_buffer* msg = buffer_init(128);
+ buffer_fadd(
+ msg,
+ "%s: Insufficient permissions",
+ MODULENAME
+ );
+
+ char* m = buffer_release(msg);
+ osrfAppSessionStatus( ctx->session, OSRF_STATUS_BADREQUEST, "osrfMethodException", ctx->request, m );
+
+ free(m);
+
return jsonNULL;
}
#endif
More information about the open-ils-commits
mailing list