-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set maximum device problem #215
Comments
This is a known issue and a subject to change in scope of #214. |
I dont know if this is the place to mention this. Sorry if I am wrong. |
Yeah, I know about this issue. It should be fixed in next version along with #214 |
Thank you. |
i fixed that by adding this code in userDialog.java and disable ui:field "*****" in xml, i dont know is that correct solution,but it seems to work fine.,. if you want manager to have acces also , just add manager in if statement. if (ApplicationContext.getInstance().getUser().getAdmin()) {
admin.setEnabled(true);
manager.setEnabled(true);
readOnly.setEnabled(true);
expirationDate.setEnabled(true);
maxNumOfDevices.setEnabled(true);
}
else {
manager.setEnabled(false);
admin.setEnabled(false);
readOnly.setEnabled(false);
expirationDate.setEnabled(false);
maxNumOfDevices.setEnabled(false);
} |
This fixes it only in UI. You must restrict it on the server side as well (i.e. in |
Cool, i will do that... |
You can then submit a pull request to share your solution. |
Ok, tomorrow i will try to change, test it and build. |
Sounds good. Thank you. |
How to push changes from intellij ? |
There should be a 'Push changes' item somewhere in 'Git' context menu. You can try searching it in the global search (opened after hitting 'shift shift' (i.e. shift for two times)). |
There is a push ,but it wont push it comes with access denied error. |
If you have cloned my repository then it won't allow you to push since you don't have access here. The correct workflow is:
Maybe it looks too complex, but this is the modern way to share your changes on github. I believe it's worth to learn this practice. Anyway, as an option you can just send me changed files by email and I will take it to my repository. |
Now ? |
It's perfect. Thank you. I will walk through your code and ask you questions directly in #252 |
…of devices setting for a user, added tests and corresponding UI message
i have small problem, if i set user as manager and set maximum device it work, but if user as manager add user and set maximum devices he can set any number maximum devices.. :D so he can add user and give max number he like..
sory my english bad.. :)
The text was updated successfully, but these errors were encountered: