Userroles Admin, Developer, User
the user roles, which are used by twip to manage parameter settings within the gui, ... is not working anymore. The functions
isUser, isDeveloper and isAdmin always return false
Comments (7)
-
reporter -
reporter userGetInfo() returns
{'Type': 'user', 'Name': 'Ronin', 'File': 'D:/Programmieren/itom_folder/Build/itom/itomSettings/itom_666.ini', 'ID': '666'}
So the initial load screen specifies Ronin as Developer
-
reporter -
assigned issue to
-
assigned issue to
-
reporter The magic reason is, the roles are handled different in different places. Within the ini-file, "Developer" is "developer" hence the case sensitive compare failes within UserOrganizer.h. The "administrator" is usually string-coded as "admin", hence the compare fails in UserOrganizer.h. In most compares the roles are compared against "admin", "developer" and "user" and not against QString-Names "Developer", "Administrator" and "User".
-
reporter -
assigned issue to
-
assigned issue to
-
reporter Fixed userRole error due to strange string compares see issue
#33.→ <<cset 41f37e6bc7f5>>
-
- changed status to resolved
unified and clearer structure of UserModel, UserOrganizer... , also fixes issue
#33→ <<cset 95f59f8780a6>>
- Log in to comment
userIsUser returns true