README.md in effective_learndash-0.1.1 vs README.md in effective_learndash-0.1.2
- old
+ new
@@ -69,9 +69,12 @@
## Permissions
The permissions you actually want to define are as follows (using CanCan):
```ruby
+can(:show, Effective::LearndashUser) { |lduser| lduser.owner_id == user.id }
+can(:index, Effective::LearndashEnrollment)
+
if user.admin?
can :admin, :effective_learndash
can(crud + [:refresh], Effective::LearndashUser)
can(crud + [:refresh], Effective::LearndashCourse)