mattrobineau / stories

Community driven link aggregater for .Net written in C#
MIT License
1 stars 1 forks source link

Implement banning of users #21

Closed mattrobineau closed 7 years ago

mattrobineau commented 7 years ago

There are going to be 2 types of bans, soft and hard bans.

Banned users behaviour

Soft bans

Hard bans

Ban order

mattrobineau commented 7 years ago

Added/Created the views and service methods required for banning.

mattrobineau commented 7 years ago

Commit 983bd2a8507e04c7445c87d434d65f5276ef29d4

mattrobineau commented 7 years ago

An admin/mod who bans a user will determine whether it is a hard ban or soft ban by setting or not setting an expiry date.

All code requiring different behaviour between a hard ban and soft ban will be determined by the ExpiryDate property (null == hard ban)

mattrobineau commented 7 years ago

After further review, a user who is soft banned cannot login. This is the same behaviour for all bans now.

mattrobineau commented 7 years ago

Commit 3811e890e3d3a38be3f34343be33295ae34e8745