mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
REPO-3743: Prevent the creation of built-in authorities, like user SYSTEM, GUEST (#276)
* REPO-3743: Prevent the creation of built-in authorities, like user SYSTEM, GUEST. * REPO-3743: added a new test and fix the tests that try to create system user. * REPO-3473: I fix the tests ussing adminUser authentication. * REPO-3743: Refactor tests authenticate as admin user. * REPO-3743: fix the tests that used System user * REPO-3743 clean up system authentication. * REPO-3743: clean up system authentication * REPO-3743: changes no permossions * [maven-release-plugin] prepare release alfresco-repository-7.32-REPO-3743_System * [maven-release-plugin] prepare for next development iteration * REPO-3743: change runAsSystem and add setFullAdminAuthentication. * [maven-release-plugin] prepare release alfresco-repository-7.32-REPO-3743_SystemUser * [maven-release-plugin] prepare for next development iteration * REPO-3743: added dependency for branch released data-model * REPO-3743: added admin user as full authenticated user. * [maven-release-plugin] prepare release alfresco-repository-REPO-3743-System-clean * [maven-release-plugin] prepare for next development iteration * REPO-3743: change the data-model version * REPO-3743: change dataModel version * [maven-release-plugin] prepare release alfresco-repository-REPO-3743-System-clean2 * [maven-release-plugin] prepare for next development iteration * REPO-3743: changes after review.
This commit is contained in:
@@ -667,7 +667,7 @@ public class ContentDiskDriver extends AlfrescoTxDiskDriver implements DiskInter
|
||||
// Use the system user as the authenticated context for the filesystem initialization
|
||||
|
||||
AuthenticationUtil.pushAuthentication();
|
||||
AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getSystemUserName());
|
||||
AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getAdminUserName());
|
||||
|
||||
// Start the transaction
|
||||
|
||||
|
Reference in New Issue
Block a user