mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
2.0 KiB
52 lines
2.0 KiB
5 years ago
|
## forum-moderation
|
||
|
|
||
|
### Objectives
|
||
|
|
||
|
You must follow the same [principles](https://public.01-edu.org/subjects/forum/forum.en) as the first subject.
|
||
|
|
||
5 years ago
|
The `forum-moderation` will be based on a moderation system. It must present a moderator that, depending on the access level of a user or the forum set-up, approves posted messages before they become publicly visible.
|
||
5 years ago
|
|
||
5 years ago
|
- The filtering can be done depending on the categories of the post being sorted by irrelevant, obscene, illegal or insulting.
|
||
5 years ago
|
|
||
5 years ago
|
For this optional you should take into account all types of users that can exist in a forum and their levels.
|
||
5 years ago
|
|
||
|
You should implement at least 4 types of users :
|
||
|
|
||
5 years ago
|
#### Guests
|
||
5 years ago
|
|
||
5 years ago
|
- These are unregistered-users that can neither post, comment, like or dislike a post. They only have the permission to **see** those posts, comments, likes or dislikes.
|
||
5 years ago
|
|
||
|
#### Users
|
||
|
|
||
|
- These are the users that will be able to create, comment, like or dislike posts.
|
||
|
|
||
|
#### Moderators
|
||
|
|
||
5 years ago
|
- Moderators, as explained above, are users that have a granted access to special functions :
|
||
|
- They should be able to monitor the content in the forum by deleting or reporting post to the admin
|
||
5 years ago
|
- To create a moderator the user should request an admin for that role
|
||
|
|
||
5 years ago
|
#### Administrators
|
||
5 years ago
|
|
||
|
- Users that manage the technical details required for running the forum. This user must be able to :
|
||
5 years ago
|
- Promote or demote a normal user to, or from a moderator user.
|
||
5 years ago
|
- Receive reports from moderators. If the admin receives a report from a moderator, he can respond to that report
|
||
|
- Delete posts and comments
|
||
5 years ago
|
- Manage the categories, by being able to creating and deleting them.
|
||
5 years ago
|
|
||
|
This project will help you learn about :
|
||
|
|
||
|
- Moderation System
|
||
|
- User access levels
|
||
|
|
||
|
### Allowed packages
|
||
|
|
||
|
- All [standard go](https://golang.org/pkg/) packages are allowed.
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
- You must handle website errors, HTTPS status.
|
||
|
- You must handle all sort of technical errors.
|
||
|
- The code must respect the [**good practices**](https://public.01-edu.org/subjects/good-practices.en).
|
||
5 years ago
|
- It is recommended that the code should present a **test file**.
|