Commit ef27e498 authored by claes's avatar claes

Admin authorized to enter development environment

parent 5da62b05
/*
* Proview $Id: wb.cpp,v 1.21 2005-12-15 07:41:17 claes Exp $
* Proview $Id: wb.cpp,v 1.22 2006-01-31 06:47:58 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -302,7 +302,7 @@ void pwr_wtt_open_volume( void *wttctx, wb_eType type, char *filename, wow_eFile
char systemgroup[80];
pwr_tStatus sts;
if ( login_prv.priv & pwr_mPrv_DevRead )
if ( login_prv.priv & pwr_mPrv_DevRead || login_prv.priv & pwr_mPrv_Administrator)
{
if ( !filename) {
utl_get_systemname( systemname, systemgroup);
......@@ -469,6 +469,7 @@ void pwr_wtt_open_volume( void *wttctx, wb_eType type, char *filename, wow_eFile
}
else {
printf( "No privileges to enter development environment");
if (appl_count == 0)
exit(LOGIN__NOPRIV);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment