Skip to content

Commit 248c372

Browse files
committed
Merge pull request Urigo#443 from dotob/patch-3
(docs): unify allow code
2 parents 659faae + dc27e01 commit 248c372

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.docs/angular-meteor/client/views/steps/tutorial.step_08.html

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,10 @@ <h1>
9797
return userId && party.owner === userId;
9898
},
9999
update: function (userId, party, fields, modifier) {
100-
if (userId !== party.owner)
101-
return false;
102-
103-
return true;
100+
return userId && party.owner === userId;
104101
},
105102
remove: function (userId, party) {
106-
if (userId !== party.owner)
107-
return false;
108-
109-
return true;
103+
return userId && party.owner === userId;
110104
}
111105
});
112106

0 commit comments

Comments
 (0)