Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, we are investigating by whom and when a change to "Restrict public access" for a node was done, but it doesn't seem to show up in any log?
Anybody here happen to know if there is any other way to get a history for these settings on a node?
Hi Frank
There is a 'PublicAccess' Audit Type:
https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Core/Models/AuditType.cs#L81
But it doesn't appear to be used anywhere...
eg not here: https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Core/Services/Implement/PublicAccessService.cs
or
here: https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Core/Persistence/Repositories/Implement/PublicAccessRepository.cs
If the backoffice was used to remove protection this controller would have fired:
https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Web.UI.Client/src/common/resources/content.resource.js#L1084
and this would call the endpoint
/umbraco/api/content/RemovePublicAccess/1234
https://github.com/umbraco/Umbraco-CMS/blob/b8540ca128bf1622ff26eb21d331577776d5a725/src/Umbraco.Web/Editors/ContentController.cs#L2506
so possibly your IIS logs would contain that 'request' and might contain information about IP address over who triggered the request... but it's a long shot!
regards
Marc
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Are changes to public access logged?
Hi, we are investigating by whom and when a change to "Restrict public access" for a node was done, but it doesn't seem to show up in any log?
Anybody here happen to know if there is any other way to get a history for these settings on a node?
Hi Frank
There is a 'PublicAccess' Audit Type:
https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Core/Models/AuditType.cs#L81
But it doesn't appear to be used anywhere...
eg not here: https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Core/Services/Implement/PublicAccessService.cs
or
here: https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Core/Persistence/Repositories/Implement/PublicAccessRepository.cs
If the backoffice was used to remove protection this controller would have fired:
https://github.com/umbraco/Umbraco-CMS/blob/34e80d86e8c0b754f6b7a02e307f53cb32806bbe/src/Umbraco.Web.UI.Client/src/common/resources/content.resource.js#L1084
and this would call the endpoint
/umbraco/api/content/RemovePublicAccess/1234
https://github.com/umbraco/Umbraco-CMS/blob/b8540ca128bf1622ff26eb21d331577776d5a725/src/Umbraco.Web/Editors/ContentController.cs#L2506
so possibly your IIS logs would contain that 'request' and might contain information about IP address over who triggered the request... but it's a long shot!
regards
Marc
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.