Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 4257-4258 (lines=2) @@
4254
                        $restricted = false;
4255
                    elseif ( !in_array( 'delete', $this->actions_disabled ) && current_user_can( 'pods_delete_' . $this->pod->pod ) && current_user_can( 'pods_delete_others_' . $this->pod->pod ) )
4256
                        $restricted = false;
4257
                    elseif ( current_user_can( 'pods_' . $action . '_' . $this->pod->pod ) && current_user_can( 'pods_' . $action . '_others_' . $this->pod->pod ) )
4258
                        $restricted = false;
4259
                }
4260
                elseif ( current_user_can( 'pods_' . $action . '_' . $this->pod->pod ) && current_user_can( 'pods_' . $action . '_others_' . $this->pod->pod ) )
4261
                    $restricted = false;
@@ 4260-4261 (lines=2) @@
4257
                    elseif ( current_user_can( 'pods_' . $action . '_' . $this->pod->pod ) && current_user_can( 'pods_' . $action . '_others_' . $this->pod->pod ) )
4258
                        $restricted = false;
4259
                }
4260
                elseif ( current_user_can( 'pods_' . $action . '_' . $this->pod->pod ) && current_user_can( 'pods_' . $action . '_others_' . $this->pod->pod ) )
4261
                    $restricted = false;
4262
            }
4263
            /* @todo determine proper logic for non-pods capabilities
4264
            else {