|
2 | 2 | USE smartcooking; |
3 | 3 |
|
4 | 4 | -- Administrative |
5 | | -CALL insert_responsibility('can_manage_roles'); |
6 | | -CALL insert_responsibility('can_view_audit_log'); |
| 5 | +CALL insert_responsibility('can_manage_roles', 'Allows the ability to create, edit, or delete user roles and their associated permissions.'); |
| 6 | +CALL insert_responsibility('can_view_audit_log', 'Allows access to view detailed records of database activities and changes for auditing purposes.'); |
7 | 7 |
|
8 | 8 | -- Category management |
9 | | -CALL insert_responsibility('can_create_category'); |
10 | | -CALL insert_responsibility('can_edit_category'); |
11 | | -CALL insert_responsibility('can_delete_category'); |
| 9 | +CALL insert_responsibility('can_create_category', 'Grants the ability to create new categories for organizing content.'); |
| 10 | +CALL insert_responsibility('can_edit_category', 'Allows editing existing categories to update their details.'); |
| 11 | +CALL insert_responsibility('can_delete_category', 'Grants permission to remove categories from the database.'); |
12 | 12 |
|
13 | 13 | -- Comment management |
14 | | -CALL insert_responsibility('can_comment_on_recipe'); |
15 | | -CALL insert_responsibility('can_edit_own_comment'); |
16 | | -CALL insert_responsibility('can_edit_any_comment'); |
17 | | -CALL insert_responsibility('can_delete_own_comment'); |
18 | | -CALL insert_responsibility('can_delete_any_comment'); |
| 14 | +CALL insert_responsibility('can_comment_on_recipe', 'Enables the user to post comments on recipes.'); |
| 15 | +CALL insert_responsibility('can_edit_own_comment', 'Allows users to edit their own comments.'); |
| 16 | +CALL insert_responsibility('can_edit_any_comment', 'Grants the ability to modify any comment in the system.'); |
| 17 | +CALL insert_responsibility('can_delete_own_comment', 'Enables users to delete their own comments.'); |
| 18 | +CALL insert_responsibility('can_delete_any_comment', 'Grants the ability to remove any comment from the system.'); |
19 | 19 |
|
20 | 20 | -- Ingredient management |
21 | | -CALL insert_responsibility('can_create_ingredient'); |
22 | | -CALL insert_responsibility('can_edit_ingredient'); |
23 | | -CALL insert_responsibility('can_delete_ingredient'); |
| 21 | +CALL insert_responsibility('can_create_ingredient', 'Allows the addition of new ingredients to the database.'); |
| 22 | +CALL insert_responsibility('can_edit_ingredient', 'Grants permission to modify existing ingredient details.'); |
| 23 | +CALL insert_responsibility('can_delete_ingredient', 'Allows the removal of ingredients from the database.'); |
24 | 24 |
|
25 | 25 | -- Media management |
26 | | -CALL insert_responsibility('can_upload_picture'); |
27 | | -CALL insert_responsibility('can_delete_picture'); |
| 26 | +CALL insert_responsibility('can_upload_picture', 'Enables users to upload pictures to the system.'); |
| 27 | +CALL insert_responsibility('can_delete_picture', 'Grants the ability to remove pictures from the system.'); |
28 | 28 |
|
29 | 29 | -- Moderation |
30 | | -CALL insert_responsibility('can_review_flagged_content'); |
31 | | -CALL insert_responsibility('can_suspend_user_account'); |
32 | | -CALL insert_responsibility('can_ban_user_account'); |
| 30 | +CALL insert_responsibility('can_review_flagged_content', 'Allows reviewing and managing content flagged as inappropriate.'); |
| 31 | +CALL insert_responsibility('can_suspend_user_account', 'Grants the ability to temporarily suspend a user’s account.'); |
| 32 | +CALL insert_responsibility('can_ban_user_account', 'Enables the banning of user accounts permanently.'); |
33 | 33 |
|
34 | 34 | -- Person management |
35 | | -CALL insert_responsibility('can_manage_any_person_profile'); |
36 | | -CALL insert_responsibility('can_delete_any_person_account'); |
| 35 | +CALL insert_responsibility('can_manage_any_person_profile', 'Grants access to edit profiles of any user in the system.'); |
| 36 | +CALL insert_responsibility('can_delete_any_person_account', 'Allows the permanent removal of any user account.'); |
37 | 37 |
|
38 | 38 | -- Recipe management |
39 | | -CALL insert_responsibility('can_create_recipe'); |
40 | | -CALL insert_responsibility('can_edit_own_recipe'); |
41 | | -CALL insert_responsibility('can_edit_any_recipe'); |
42 | | -CALL insert_responsibility('can_delete_own_recipe'); |
43 | | -CALL insert_responsibility('can_delete_any_recipe'); |
44 | | -CALL insert_responsibility('can_publish_recipe'); |
45 | | -CALL insert_responsibility('can_review_recipe'); |
| 39 | +CALL insert_responsibility('can_create_recipe', 'Allows users to create and submit new recipes.'); |
| 40 | +CALL insert_responsibility('can_edit_own_recipe', 'Grants users the ability to edit their own recipes.'); |
| 41 | +CALL insert_responsibility('can_edit_any_recipe', 'Allows editing any recipe in the system.'); |
| 42 | +CALL insert_responsibility('can_delete_own_recipe', 'Enables users to delete their own recipes.'); |
| 43 | +CALL insert_responsibility('can_delete_any_recipe', 'Grants the ability to remove any recipe from the system.'); |
| 44 | +CALL insert_responsibility('can_publish_recipe', 'Allows the publication of recipes to make them publicly visible.'); |
| 45 | +CALL insert_responsibility('can_review_recipe', 'Grants permission to review recipes for approval or feedback.'); |
46 | 46 |
|
47 | 47 | -- Tag management |
48 | | -CALL insert_responsibility('can_create_tag'); |
49 | | -CALL insert_responsibility('can_edit_tag'); |
50 | | -CALL insert_responsibility('can_delete_tag'); |
| 48 | +CALL insert_responsibility('can_create_tag', 'Allows the creation of new tags for categorizing content.'); |
| 49 | +CALL insert_responsibility('can_edit_tag', 'Grants the ability to edit existing tags.'); |
| 50 | +CALL insert_responsibility('can_delete_tag', 'Allows the removal of tags from the database.'); |
51 | 51 |
|
52 | 52 | -- Translation management |
53 | | -CALL insert_responsibility('can_add_translation'); |
54 | | -CALL insert_responsibility('can_edit_translation'); |
55 | | -CALL insert_responsibility('can_delete_translation'); |
| 53 | +CALL insert_responsibility('can_add_translation', 'Enables the addition of new translations for system content.'); |
| 54 | +CALL insert_responsibility('can_edit_translation', 'Grants permission to modify existing translations.'); |
| 55 | +CALL insert_responsibility('can_delete_translation', 'Allows the deletion of translations from the database.'); |
0 commit comments