mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-19 01:36:18 +10:00
only can report others' Feed in Feeds
This commit is contained in:
@@ -1074,10 +1074,16 @@ extension FeedsViewController: UITableViewDataSource, UITableViewDelegate {
|
||||
}
|
||||
|
||||
|
||||
// Edit (for Delete)
|
||||
// Report
|
||||
|
||||
func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
|
||||
|
||||
|
||||
let feed = feeds[indexPath.item]
|
||||
|
||||
if feed.creator.id == YepUserDefaults.userID.value {
|
||||
return false
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user