|
|
|
@ -44,12 +44,12 @@ class ResourceService extends SiteService {
|
|
|
|
|
|
|
|
|
|
let uniqueKey = req.ip.toString().trim().toLowerCase();
|
|
|
|
|
if (req.user) {
|
|
|
|
|
if (resourceType == 'Post') {
|
|
|
|
|
if (req.user._id == req.post.author._id) {
|
|
|
|
|
if (resourceType === 'Post') {
|
|
|
|
|
if (req.user._id === req.post.author._id) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (resourceType == 'Page') {
|
|
|
|
|
if (req.user._id == req.page.author._id) {
|
|
|
|
|
if (resourceType === 'Page') {
|
|
|
|
|
if (req.user._id === req.page.author._id) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|