frappe / lms

Easy to Use, 100% Open Source Learning Management System
https://frappe.io/learning
GNU Affero General Public License v3.0
1.06k stars 479 forks source link

Issue: LMS Category Creation Not Working for LMS Moderator Role #1140

Closed abhirock74 closed 2 days ago

abhirock74 commented 3 days ago

Issue: LMS Category Creation Not Working for LMS Moderator Role

Description

The LMS Moderator is unable to create a new LMS category. However, another user with the same permissions can successfully create categories. This inconsistency suggests a possible issue with the role permissions or user-specific restrictions.

Steps to Reproduce

  1. Log in as a user with the LMS Moderator role.

  2. Navigate to the LMS Category creation page.

  3. Attempt to create a new category.

  4. Observe that the action fails or is not permitted.

  5. Log in as another user with identical permissions.

  6. Repeat the above steps and observe that category creation is successful.

Expected Behavior

All users with the LMS Moderator role and the necessary permissions should be able to create LMS categories without issue.

Actual Behavior

Screenshots

  1. LMS Moderator Error:
    image

  2. Successful Creation by Another User:
    image

Possible Causes

Suggested Resolution

  1. Verify and compare permissions for the LMS Moderator role across users.
  2. Check for user-specific restrictions or overrides.
  3. Clear cache and reload permissions.
  4. Investigate logs for errors during category creation attempts.
  5. Test with a fresh user assigned the LMS Moderator role to replicate the issue.
abhirock74 commented 2 days ago

Solved, it is a permission issue