mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NETSHELL] Network connections can't be renamed
Enable the 'Rename' and 'Delete' menu items for Administrators. CORE-15348
This commit is contained in:
parent
27cfe08016
commit
de0e19bc72
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue