Status | ID | Priority | Type |
Closed | 24200 | Major | Question |
Profile | Reply |
lucas.swapiClient | Hello guys, I'm having a problem when I try to access the IDCUser's detail. Only if the logged user has administrator permission that the error does not happen. I have attached a print showing my configuration of Data Access Permissions of Users' role. Thanks in advance! Attached files: |
User | Description | Posted On |
Sasha (Xafari Support)Client | Hello Lucas, Unfortunately we can't reproduce the issue. Could you please provide us with more information on when this error appears (for example CallStack the error, Thanks, Sasha. | |
lucas.swapi | Hello Sasha, Regards. Attached files: | |
lucas.swapi | I forgot to attach the database backup wih my configuration. Regards Attached files: | |
Sasha (Xafari Support)Client | Hello, Thank you for the additional information. Regards, Sasha. | |
Sasha (Xafari Support)Client | Hello Lucas,
We attach a video for you to address the issue with 'IDCUser's DetailView'(attached file Security.zip). For Updater.cs file you can use next code: public override void UpdateDatabaseAfterUpdateSchema() { base.UpdateDatabaseAfterUpdateSchema(); var adminRole = ObjectSpace.FindObject<IDCSecuritySystemRole>( new BinaryOperator("Name", SecurityStrategy.AdministratorRoleName)); if (adminRole == null) { adminRole = ObjectSpace.CreateEntity<IDCSecuritySystemRole>(); adminRole.Name = SecurityStrategy.AdministratorRoleName; adminRole.IsAdministrative = true; } var adminUser = ObjectSpace.FindObject<IDCSecuritySystemUser>( new BinaryOperator("UserName", "admin")); if (adminUser == null) { adminUser = ObjectSpace.CreateEntity<IDCSecuritySystemUser>(); adminUser.UserName = "admin"; adminUser.SetPassword(""); adminUser.DCRoles.Add(adminRole); adminUser.IsActive = true; } } Please try this solution and let me know whether it suits you or not. Attached files: | |
lucas.swapi | Hello Sasha, this solution solve the problem but I have a much wider application with several users and wouldn't be feasible to apply this solution. I would like to understand why the MyDetails View problem occur only if the logged user doesn't have the Administrator Role. Regards. | |
Sasha (Xafari Support)Client | Hello, Thank you for your answer. We are working on your issue and it will take some additional time. Regards, Sasha. | |
Sasha (Xafari Support)Client | Hello Lucas, To solve your issue you must: Let me know if you need further assistance. Attached files: | |
lucas.swapi | Thank you for the script. Regards. |