Do not delete access rules on clear

This commit is contained in:
M66B 2016-01-30 17:41:45 +01:00
parent bfbaae804b
commit a7a8587fb8
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
public DatabaseHelper clearAccess(int uid) {
synchronized (mContext.getApplicationContext()) {
SQLiteDatabase db = this.getReadableDatabase();
db.delete("access", "uid = ?", new String[]{Integer.toString(uid)});
db.delete("access", "uid = ? AND block < 0", new String[]{Integer.toString(uid)});
}
for (AccessChangedListener listener : accessChangedListeners)