More code formating

This commit is contained in:
Deon George 2022-04-15 21:35:01 +10:00
parent 8df5d1dcff
commit 74d33427db
2 changed files with 5 additions and 5 deletions

View File

@ -48,19 +48,19 @@ function PageFrame() {
get: function() { get: function() {
log(LOG_DEBUG,'- Checking if user can access frame: '+this.page); log(LOG_DEBUG,'- Checking if user can access frame: '+this.page);
log(LOG_DEBUG,' - User: '+JSON.stringify(user.number)); log(LOG_DEBUG,' - User: '+JSON.stringify(user.number));
log(LOG_DEBUG,' - Frame Owner: '+JSON.stringify(this.owner)+', System Frame: '+(this.pageowner == SYSTEM_OWNER)); log(LOG_DEBUG,' - Frame Owner: '+JSON.stringify(this.owner)+', System Frame: '+(this.pageowner === SYSTEM_OWNER));
// user.number 0 is unidentified user. // user.number 0 is unidentified user.
if (user.number) { if (user.number) {
return ( return (
(this.isAccessible && this.pageowner == SYSTEM_OWNER && ! this.isPublic) || (this.isAccessible && this.pageowner === SYSTEM_OWNER && ! this.isPublic) ||
(this.isAccessible && this.isPublic) || (this.isAccessible && this.isPublic) ||
(this.isAccessible && ! this.isPublic && this.isMember) || (this.isAccessible && ! this.isPublic && this.isMember) ||
(pageEditor(this.frame)) (pageEditor(this.frame))
); );
} else { } else {
return (this.isAccessible && this.pageowner == SYSTEM_OWNER && this.isPublic); return (this.isAccessible && this.pageowner === SYSTEM_OWNER && this.isPublic);
} }
} }
}); });
@ -169,7 +169,7 @@ PageFrame.prototype.fieldValue = function(key) {
for each (var k in this.frame_fields) { for each (var k in this.frame_fields) {
log(LOG_DEBUG,' - k:'+JSON.stringify(k)); log(LOG_DEBUG,' - k:'+JSON.stringify(k));
if (k.fname == key) { if (k.fname === key) {
return k.fvalue; return k.fvalue;
} }
} }

View File

@ -88,7 +88,7 @@ if (! send || ! frame || file) {
} }
// @NOTE: We need to use a binary signature then base64 encode it, as mailers may strip 0x0a while messages are in transit. // @NOTE: We need to use a binary signature then base64 encode it, as mailers may strip 0x0a while messages are in transit.
if (send == 1 && options.gpg_key) { if (send === 1 && options.gpg_key) {
if (! file) { if (! file) {
file = system.mods_dir+'ansitex/text/'+frame.page+'.tex'; file = system.mods_dir+'ansitex/text/'+frame.page+'.tex';
} }