Fixed an issue where Non-admin user is unable to view shared server created using service. Fixes #6075

This commit is contained in:
Nikhil Mohite
2021-01-13 12:18:16 +05:30
committed by Akshay Joshi
parent 18e4b30634
commit 1a756efe82
3 changed files with 99 additions and 2 deletions

View File

@@ -379,8 +379,7 @@ class SharedServer(db.Model):
hostaddr = db.Column(db.String(128), nullable=True)
port = db.Column(
db.Integer(),
db.CheckConstraint('port >= 1 AND port <= 65534'),
nullable=False)
nullable=True)
maintenance_db = db.Column(db.String(64), nullable=True)
username = db.Column(db.String(64), nullable=False)
password = db.Column(db.String(64), nullable=True)