diff --git a/littleX_BE/littleX.impl.jac b/littleX_BE/littleX.impl.jac index 69346e4..e94668a 100644 --- a/littleX_BE/littleX.impl.jac +++ b/littleX_BE/littleX.impl.jac @@ -54,7 +54,6 @@ impl Tweet.remove_like { impl Tweet.comment { current_profile = [root-->(`?Profile)]; comment_node = current_profile[0] +>:Post():+> Comment(content=visitor.content); - _.perm_grant(comment_node[0], level="CONNECT"); self ++> comment_node[0]; report comment_node[0]; } @@ -89,7 +88,6 @@ impl Comment.delete { impl visit_profile.visit_profile { visit [-->(`?Profile)] else { new_profile = here ++> Profile(); - _.perm_grant(new_profile[0], level="CONNECT"); visit new_profile; } } @@ -112,7 +110,6 @@ impl load_user_profiles.report_profiles { impl create_tweet.tweet { embedding = vectorizer.fit_transform([self.content]).toarray().tolist(); tweet_node = here +>:Post():+> Tweet(content=self.content, embedding=embedding); - _.perm_grant(tweet_node[0], level="CONNECT"); report tweet_node; } diff --git a/littleX_BE/littleX.jac b/littleX_BE/littleX.jac index 5a89d26..65d2614 100644 --- a/littleX_BE/littleX.jac +++ b/littleX_BE/littleX.jac @@ -18,6 +18,10 @@ node Profile { can follow with follow_request entry; can un_follow with un_follow_request entry; + + def __jac_access__ { + return "CONNECT"; + } } obj TweetInfo { @@ -47,6 +51,10 @@ node Tweet { def get_info()-> TweetInfo; can get with load_feed entry; + + def __jac_access__ { + return "CONNECT"; + } } node Comment { @@ -55,6 +63,10 @@ node Comment { can update with update_comment entry; can delete with remove_comment entry; + + def __jac_access__ { + return "CONNECT"; + } } edge Follow {}