Changeset 5079
- Timestamp:
- 08/19/2013 07:20:19 AM (12 years ago)
- Location:
- trunk/includes
- Files:
-
- 3 edited
-
forums/capabilities.php (modified) (1 diff)
-
replies/capabilities.php (modified) (1 diff)
-
topics/capabilities.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/forums/capabilities.php
r4995 r5079 137 137 $caps[] = 'do_not_allow'; 138 138 139 // User is author so allow edit 140 } elseif ( (int) $user_id === (int) $_post->post_author) {139 // User is author so allow edit if not in admin 140 } elseif ( !is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) { 141 141 $caps[] = $post_type->cap->edit_posts; 142 142 -
trunk/includes/replies/capabilities.php
r4995 r5079 126 126 $caps[] = 'do_not_allow'; 127 127 128 // User is author so allow edit 129 } elseif ( (int) $user_id === (int) $_post->post_author) {128 // User is author so allow edit if not in admin 129 } elseif ( !is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) { 130 130 $caps[] = $post_type->cap->edit_posts; 131 131 -
trunk/includes/topics/capabilities.php
r4995 r5079 144 144 $caps[] = 'do_not_allow'; 145 145 146 // User is author so allow edit 147 } elseif ( (int) $user_id === (int) $_post->post_author) {146 // User is author so allow edit if not in admin 147 } elseif ( !is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) { 148 148 $caps[] = $post_type->cap->edit_posts; 149 149
Note: See TracChangeset
for help on using the changeset viewer.