Guest access per user disabled by default

This commit is contained in:
JonnyWong16 2016-04-24 12:00:11 -07:00
commit af9786f149
3 changed files with 4 additions and 4 deletions

View file

@ -447,7 +447,7 @@ def dbcheck():
'user_id INTEGER DEFAULT NULL UNIQUE, username TEXT NOT NULL, friendly_name TEXT, '
'thumb TEXT, custom_avatar_url TEXT, email TEXT, is_home_user INTEGER DEFAULT NULL, '
'is_allow_sync INTEGER DEFAULT NULL, is_restricted INTEGER DEFAULT NULL, do_notify INTEGER DEFAULT 1, '
'keep_history INTEGER DEFAULT 1, deleted_user INTEGER DEFAULT 0, allow_guest INTEGER DEFAULT 1, '
'keep_history INTEGER DEFAULT 1, deleted_user INTEGER DEFAULT 0, allow_guest INTEGER DEFAULT 0, '
'user_token TEXT, server_token TEXT)'
)
@ -749,7 +749,7 @@ def dbcheck():
except sqlite3.OperationalError:
logger.debug(u"Altering database. Updating database table users.")
c_db.execute(
'ALTER TABLE users ADD COLUMN allow_guest INTEGER DEFAULT 1'
'ALTER TABLE users ADD COLUMN allow_guest INTEGER DEFAULT 0'
)
c_db.execute(
'ALTER TABLE users ADD COLUMN user_token TEXT'