# Accessing the Admin Panel in the Source Code

**URL:** <https://meta.discourse.org/t/accessing-the-admin-panel-in-the-source-code/283571>\
**Category:** Development\
**Created:** [October 26, 2023, 6:40pm UTC](https://meta.discourse.org/t/accessing-the-admin-panel-in-the-source-code/283571 "2023-10-26T18:40:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [October 26, 2023, 11:17pm UTC](https://meta.discourse.org/t/accessing-the-admin-panel-in-the-source-code/283571/5 "2023-10-26T23:17:57Z")

</div>

> [@Marshably](#):
>
> but for some unknown reason, after deleting those lines of Code and restarting the VPS, the IPs still show up

Editing the Discourse source code isn’t the recommended way to make changes to Discourse. I think you are going to have to find a way to make the change in a plugin.

What happened when you restarted Discourse will depend on how you restarted it. If you ran `./launcher rebuild app`, then the changes you made will have been overwritten from the Discourse base image. If you ran `./launcher start app`, it may be that starting the app isn’t enough to get Discourse to recompile the edited handlebars template.

Do you really need to prevent moderators _and_ admins from viewing user’s IP addresses? There are a few requests on this site to add a setting that prevents moderators from viewing IP address. I’m not aware of other sites wanting to prevent admins from viewing IP addresses.

---

_[View the full topic](https://meta.discourse.org/t/accessing-the-admin-panel-in-the-source-code/283571)._
