chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.26k stars 900 forks source link

Chocolatey commands should accurately report if they may require administrator rights or not #3472

Open corbob opened 3 months ago

corbob commented 3 months ago

Checklist

Is Your Feature Request Related To A Problem? Please describe.

No response

Describe The Solution. Why is it needed?

For some commands, there are situations where admin is not required. Many of these commands are just returning true on MayRequireAdminAccess. It would be ideal if they only returned true on operations that require administrator access.

Additional Context

An example of this is choco feature get. It is not choco feature list, and so it is marked as possibly requiring admin access. It would probably be good to assess all of the MayRequireAdminAccess methods to ensure that they are behaving as desired.

image

Related Issues