What should I do if I want to create a table for permission settings in the circle of friends?

Source: Internet
Author: User
One of our current applications is similar to the circle of friends. One of them is about permissions: 1. Non-friends cannot comment. 2. I can only see my comments and the reply from the other party. How can I clarify these relationships? Is there a general idea? I will discuss the problem later... one of the modules in this application is similar to the circle of friends. One of them is about permissions:
1. Non-friends cannot comment.
2. I can only see my comments and the reply from the other party.
How can I clarify these relationships? Is there a general idea? I will elaborate on the issues later, including the code I have implemented ,,

The problem has been disabled. cause: the problem cannot obtain the exact result.

Reply content:

One of our current applications is similar to the circle of friends. One of them is about permissions:
1. Non-friends cannot comment.
2. I can only see my comments and the reply from the other party.
How can I clarify these relationships? Is there a general idea? I will elaborate on the issues later, including the code I have implemented ,,

According to your description: There is a friend table (id, uid-id, fid-friend id, time-friend time ). If you have the permission, you can query the table to view only the fid messages in your table.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.