mirror of
https://github.com/reactos/reactos.git
synced 2026-05-29 21:19:51 +08:00
[NETSHELL] Network connections can't be renamed
Enable the 'Rename' and 'Delete' menu items for Administrators. CORE-15348
This commit is contained in:
@@ -290,6 +290,16 @@ CNetConnection::GetProperties(NETCON_PROPERTIES **ppProps)
|
||||
CoTaskMemFree(pStr);
|
||||
}
|
||||
|
||||
/* Enable 'Rename' and 'Delete' for Adminstrators only */
|
||||
if (IsUserAdmin())
|
||||
{
|
||||
pProperties->dwCharacter |= (NCCF_ALLOW_RENAME | NCCF_ALLOW_REMOVAL);
|
||||
}
|
||||
else
|
||||
{
|
||||
pProperties->dwCharacter &= ~(NCCF_ALLOW_RENAME | NCCF_ALLOW_REMOVAL);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user