Answers.Body: <p>Yea, its difficult to hide the message from the status using CSS. You write JS to remove the  tag inside the .msg-text. But the user will still be able to register using the URL</p>
  <p>We have an extension that over-rides the status message and restricts the user to registering using cid=0 from the URL.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-03T18:40:05.170Z
Answers.Text: Thank you Pradeep.  It's helpful to know I'm not crazy!  :)  Is it a public extension?  I tried searching in gitlab and civi extensions directory but didn't find anything.
Answers.UserDisplayName: richardsplayground
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-03T22:32:20.377Z
Answers.Text: It has some complex code in it, will need to do some clean-up so that I can make it available for public
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-03T14:14:09.263Z
Answers.LastActivityDate: 2023-11-03T14:14:09.263Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>There are a number of places where CiviCRM gives a user the opportunity to register someone else for an event.  In our case, this is undesirable behaviour.</p>
  <p>We have tried using CSS to hide those messages, by replacing the .msg-text with text of our own, but inevitably this also causes us to hide important messages that shouldn't be hidden.</p>
  <p>Is there a way in Civi to just prevent registering other people altogether?  Or on a per-event basis perhaps?</p>
  <p>Specific examples:</p>
  <ul>
  <li>If you have already registered for an event, and you go to the event page, Civi gives you an option to register someone else.  So we used CSS to hide .msg-text.</li>
  <li>However, if you have an event that has a registration limit, the same .msg-text CSS placeholder is used to say the event is full.</li>
  </ul>
  <p>Is there a better way to do this?</p>
  <p>Thank you</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-11-03T17:12:09.183Z
Comments.Text: This should really be a feature of CiviCRM, some kind of option in the event setup to limit registration to authenticated users (whether by login or by personalized link). Maybe you want to add this feature or sponsor it?
Comments.UserDisplayName: Lars SG
Tags: <civievent>
Title: How to stop people from registering other people
ThreadText: # How to stop people from registering other people
  
  (Asked by: username_0 on 2023-11-02)
  
  There are a number of places where CiviCRM gives a user the opportunity to register someone else for an event. In our case, this is undesirable behaviour.
  
  We have tried using CSS to hide those messages, by replacing the .msg-text with text of our own, but inevitably this also causes us to hide important messages that shouldn't be hidden.
  
  Is there a way in Civi to just prevent registering other people altogether? Or on a per-event basis perhaps?
  
  Specific examples:
  
  * If you have already registered for an event, and you go to the event page, Civi gives you an option to register someone else. So we used CSS to hide .msg-text.
  * However, if you have an event that has a registration limit, the same .msg-text CSS placeholder is used to say the event is full.
  
  Is there a better way to do this?
  
  Thank you
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_1**: This should really be a feature of CiviCRM, some kind of option in the event setup to limit registration to authenticated users (whether by login or by personalized link). Maybe you want to add this feature or sponsor it?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-11-03. Score: 1 | Accepted answer
  
  Yea, its difficult to hide the message from the status using CSS. You write JS to remove the tag inside the .msg-text. But the user will still be able to register using the URL
  
  We have an extension that over-rides the status message and restricts the user to registering using cid=0 from the URL.
  
  > **Comments:**
  > **username_0**: Thank you username_2.  It's helpful to know I'm not crazy!  :)  Is it a public extension?  I tried searching in gitlab and civi extensions directory but didn't find anything.  
  > **username_2**: It has some complex code in it, will need to do some clean-up so that I can make it available for public  
  
  ---
  
  