samslunch / openmeetings

Automatically exported from code.google.com/p/openmeetings
0 stars 0 forks source link

Enhancement suggestion check status when get user #282

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Usermanagement.java
Line 171
Query query = session.createQuery("select c from Users as c where c.user_id
= :user_id");

Changing to 

Query query = session.createQuery("select c from Users as c where c.user_id
= :user_id and status = 1");

Status could be controlled...

Take care,
Kunthar

Original issue reported on code.google.com by kunt...@gmail.com on 10 Jan 2008 at 4:46

GoogleCodeExporter commented 9 years ago
I'll have to check that. Cause if you are in Admin-Panel you should get the 
User no
matter what kind of status the requested user is.

Original comment by seba.wag...@gmail.com on 10 Jan 2008 at 7:35

GoogleCodeExporter commented 9 years ago
What is "availible" field usage in users table?

Original comment by kunt...@gmail.com on 10 Jan 2008 at 7:46

GoogleCodeExporter commented 9 years ago
availibl could be highlighted as deprecated.
It is not used for the moment.
Line 171
Query query = session.createQuery("select c from Users as c where c.user_id
= :user_id");

should be allright, it should not check if the user is at status = 1 at this 
point
cause this function is used not only during login, but also in the 
Administration
interface to change the user-data for example.

Original comment by seba.wag...@gmail.com on 10 Jan 2008 at 8:23