~sircmpwn/lists.sr.ht

562b46be9b4d452a2d8f10e8792a35572a8f2e8e — Drew DeVault 1 year, 4 days ago 13b5e94 0.39.1
Set server_default access to normal
2 files changed, 4 insertions(+), 3 deletions(-)

M listssrht/types/list.py
M listssrht/types/listaccess.py
M listssrht/types/list.py => listssrht/types/list.py +3 -3
@@ 15,19 15,19 @@ class List(Base):
            sa.Boolean, nullable=False, server_default='f')

    nonsubscriber_permissions = sa.Column(FlagType(ListAccess),
            nullable=False, server_default=str(ListAccess.all.value))
            nullable=False, server_default=str(ListAccess.normal.value))
    """
    Permissions granted to users who are not subscribed or logged in.
    """

    subscriber_permissions = sa.Column(FlagType(ListAccess),
            nullable=False, server_default=str(ListAccess.all.value))
            nullable=False, server_default=str(ListAccess.normal.value))
    """
    Permissions granted to users who are subscribed to the list.
    """

    account_permissions = sa.Column(FlagType(ListAccess),
            nullable=False, server_default=str(ListAccess.all.value))
            nullable=False, server_default=str(ListAccess.normal.value))
    """
    Permissions granted to holders of sr.ht accounts.
    """

M listssrht/types/listaccess.py => listssrht/types/listaccess.py +1 -0
@@ 15,4 15,5 @@ class ListAccess(IntFlag):
    moderate = 8
    """Permission to moderate the list."""

    normal = browse | reply | post
    all = browse | reply | post | moderate