Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5957423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:23:54+00:00 2026-05-22T18:23:54+00:00

I am writing an application to manage parties. I have some basic tables: USERS

  • 0

I am writing an application to manage parties. I have some basic tables:

USERS : People who have registered to use the application
GROUPS: A user can belong to many groups. Examples include :{FAMILY, FRIENDS}
USERS_GROUPS: Which groups the user belongs to.
PARTIES: Different parties that have been created.
USERS_PARTIES: Join table (which users are coming to which parties)

I now want to implement the concept of a private party. Only users who are on a invitation list should be allowed to view and register for this private party. I’d like to be able to invite users to this party on a per user basis or/and on a group basis.

It seems like a bad solution to do the following:
1) Add a field to PARTIES called something like private. This will either be 1 or 0.
2) Create a new table called GROUP_INVITATIONS. This would be used to specify which groups are invited to the event.
3) Create a new table called USER_INVITATIONS. This would be used to specify which users are invited to the event.

Is the above a reasonable solution? Are there better ways to approach this issue? As a side note CakePHP has a concept of ACL (access control lists), but this only allows a user to be part of 1 group. This also seems like a separate issue from restricting access to certain actions of the MCP application. I do plan on using ACL to do this, but in this case Users will belong to one and only one role, which will determine which functions they have access to in the web application.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:23:55+00:00Added an answer on May 22, 2026 at 6:23 pm

    Well, I think your going in the right direction.

    Definitely a boolean field (a flag) private for the model Party.

    I wouldn’t create a groups_invitations table. Rather, when a group is invited – create an invitation for every user belonging to that group. I think it’s just easier that way.

    As for the users_invitations table… maybe try to include that in the users_parties table(if you want to strictly follow Cake’s conventions – it should actually be parties_users). Something like:

    id
    party_id
    user_id
    coming (boolean)
    

    When a user is invited to a private party, you create a link (a record) between him and the party, it is up to him to change coming to true. As for public parties – the user creates a link(a record) when declaring arrival (setting coming to true). For adding (and deleting) HABTM records, see this great behavior.

    Well, taking a second to think about it – maybe including invitations in the join table isn’t the best idea – too complicated I guess. Looking forward to some comments on that, since I’m torn.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an application to manage user access to files. The short version
I'm writing an application that on some stage performs low-level disk operations in Linux
I am about to begin building a small application for a user to manage
I am writing a desktop utility application to manage a small set of data.
I'm writing a Django application that is using pip & virtualenv to manage its
I'm writing a web application that allow user upload their files on the app.
I'm writing a web application in Python, intended for use by teachers and pupils
I have a Winforms application which is working fine.. using a BackgroundWorkerThread to manage
I am writing an application that uses GWT, some Spring MVC and Spring Security.
I am writing a distributed Java application that will make heavy use of networking,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.