Move Gitlab::Database.read_write? check to TokenAuthenticatable
Instead of checking it in the User model, move it as deep as possible to avoid future mistakes.
Showing
Please register or sign in to comment
Instead of checking it in the User model, move it as deep as possible to avoid future mistakes.