| @@ -16,8 +16,13 @@ | ||
| 16 | 16 | $config[ UserModel::ROLE_INSTRUCTOR ] = apply_filters( |
| 17 | 17 | 'learn-press/role/instructor/capabilities_default', |
| 18 | 18 | [ |
| 19 | 19 | 'label' => 'Instructor', |
| 20 | + 'capabilities' => [ | |
| 21 | + 'read', | |
| 22 | + 'upload_files', | |
| 23 | + 'edit_posts' // Required by WooCommerce for wp-admin access. Ideally instructors should only manage courses, not posts. | |
| 24 | + ], | |
| 20 | 25 | 'prefix_capabilities' => [ |
| 21 | 26 | 'publish', |
| 22 | 27 | 'edit', |
| 23 | 28 | 'delete', |