mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-25 15:38:56 +00:00
Explaining why we check for no metadata
This commit is contained in:
parent
804b287afc
commit
2875ff3f2b
@ -31,7 +31,10 @@ var model = {
|
||||
}.bind(this));
|
||||
},
|
||||
isVisible: function (bin, username) {
|
||||
if (!bin.metadata) { // bin does not exist yet, it cannot be private
|
||||
// This will only occur if it isn't a real bin, it has been created
|
||||
// on from default files and does not exist in any database. By this
|
||||
// logic the bin must be public, it has no owner and no record.
|
||||
if (!bin.metadata) {
|
||||
return true;
|
||||
}
|
||||
// this should only let users see the latest
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user