Make privilege property consistent with the GumTree hipadaba schema.
r1690 | ffr | 2007-03-20 16:05:12 +1100 (Tue, 20 Mar 2007) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
072d0fc1c6
commit
efb997cd16
@@ -24,22 +24,22 @@
|
|||||||
#include "sicshipadaba.h"
|
#include "sicshipadaba.h"
|
||||||
#include "sicshdbadapter.h"
|
#include "sicshdbadapter.h"
|
||||||
|
|
||||||
#define PRIVNAM "priv"
|
#define PRIVNAM "privilege"
|
||||||
/*==================== support code ====================================*/
|
/*==================== support code ====================================*/
|
||||||
static void AddPrivProperty(pHdb node, int priv){
|
static void AddPrivProperty(pHdb node, int priv){
|
||||||
char pPriv[80];
|
char pPriv[80];
|
||||||
switch(priv){
|
switch(priv){
|
||||||
case usInternal:
|
case usInternal:
|
||||||
strcpy(pPriv,"internal");
|
strcpy(pPriv,"READ_ONLY");
|
||||||
break;
|
break;
|
||||||
case usMugger:
|
case usMugger:
|
||||||
strcpy(pPriv,"manager");
|
strcpy(pPriv,"MANAGER");
|
||||||
break;
|
break;
|
||||||
case usUser:
|
case usUser:
|
||||||
strcpy(pPriv,"user");
|
strcpy(pPriv,"USER");
|
||||||
break;
|
break;
|
||||||
case usSpy:
|
case usSpy:
|
||||||
strcpy(pPriv,"spy");
|
strcpy(pPriv,"SPY");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assert(0);
|
assert(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user