We will need a per item comment policy to be able to determine in advance if we have permission to comment on something , and we'll need to send it out with all communications. The current check is not only flawed but also a huge performance hit. Also provide the ability for an item to disable commenting completely - such as for a webpage or wherever you want to prevent comments on one item, without requiring a change to your entire permission scheme. All of this is only partially implemented at the moment but we need the structures in place on several sites in order to finish it without breaking everything.
This commit is contained in:
@@ -462,6 +462,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
||||
`inform` mediumtext NOT NULL,
|
||||
`location` char(255) NOT NULL DEFAULT '',
|
||||
`coord` char(255) NOT NULL DEFAULT '',
|
||||
`comment_policy` char(255) NOT NULL DEFAULT '',
|
||||
`allow_cid` mediumtext NOT NULL,
|
||||
`allow_gid` mediumtext NOT NULL,
|
||||
`deny_cid` mediumtext NOT NULL,
|
||||
@@ -494,6 +495,7 @@ CREATE TABLE IF NOT EXISTS `item` (
|
||||
KEY `mid` (`mid`),
|
||||
KEY `parent_mid` (`parent_mid`),
|
||||
KEY `uid_mid` (`mid`,`uid`),
|
||||
KEY `comment_policy` (`comment_policy`),
|
||||
FULLTEXT KEY `title` (`title`),
|
||||
FULLTEXT KEY `body` (`body`),
|
||||
FULLTEXT KEY `allow_cid` (`allow_cid`),
|
||||
|
||||
Reference in New Issue
Block a user