Comment groups: allow all actions, when view/edit/remove field is undefined
This commit is contained in:
parent
48ab72fb14
commit
64b34da425
|
@ -1063,7 +1063,7 @@ Common.Utils.UserInfoParser = new(function() {
|
||||||
},
|
},
|
||||||
|
|
||||||
canViewComment: function(username) {
|
canViewComment: function(username) {
|
||||||
if (!parse || !commentGroups) return true;
|
if (!parse || !commentGroups || !commentGroups.view) return true;
|
||||||
|
|
||||||
var groups = _getParsedGroups(username);
|
var groups = _getParsedGroups(username);
|
||||||
groups && (groups.length==0) && (groups = [""]);
|
groups && (groups.length==0) && (groups = [""]);
|
||||||
|
@ -1071,7 +1071,7 @@ Common.Utils.UserInfoParser = new(function() {
|
||||||
},
|
},
|
||||||
|
|
||||||
canEditComment: function(username) {
|
canEditComment: function(username) {
|
||||||
if (!parse || !commentGroups) return true;
|
if (!parse || !commentGroups || !commentGroups.edit) return true;
|
||||||
|
|
||||||
var groups = _getParsedGroups(username);
|
var groups = _getParsedGroups(username);
|
||||||
groups && (groups.length==0) && (groups = [""]);
|
groups && (groups.length==0) && (groups = [""]);
|
||||||
|
@ -1079,7 +1079,7 @@ Common.Utils.UserInfoParser = new(function() {
|
||||||
},
|
},
|
||||||
|
|
||||||
canDeleteComment: function(username) {
|
canDeleteComment: function(username) {
|
||||||
if (!parse || !commentGroups) return true;
|
if (!parse || !commentGroups || !commentGroups.remove) return true;
|
||||||
|
|
||||||
var groups = _getParsedGroups(username);
|
var groups = _getParsedGroups(username);
|
||||||
groups && (groups.length==0) && (groups = [""]);
|
groups && (groups.length==0) && (groups = [""]);
|
||||||
|
|
Loading…
Reference in a new issue