Changeset 6265
- Timestamp:
- 01/30/2017 03:29:52 AM (8 years ago)
- Location:
- trunk/src/includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/capabilities.php
r6087 r6265 166 166 $caps[] = 'moderate'; 167 167 168 // User is author so allow editif not in admin168 // User is author so allow delete if not in admin 169 169 } elseif ( ! is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) { 170 170 $caps[] = $post_type->cap->delete_posts; -
trunk/src/includes/topics/capabilities.php
r6056 r6265 188 188 $caps[] = 'moderate'; 189 189 190 // User is author so allow editif not in admin190 // User is author so allow delete if not in admin 191 191 } elseif ( ! is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) { 192 192 $caps[] = $post_type->cap->delete_posts;
Note: See TracChangeset
for help on using the changeset viewer.