Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

block a user from save event 3 months 1 day ago #30873

  • gnarly
  • gnarly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 1
I want to prevent a user from saving an event if they do not have enough "credit" there has been an update and my code which was working got wiped (duh) there is an allowsave in controllers/'d hacked but now any code injected causes total failure. I'm a decade out of touch so the php I'm using is fine but not in tune with joomla 4. What I'm asking for is how do you say a specific user is no longer allowed to save (as a jem thing). I considered changing the "created by" to block it on the "edit own events" but tracking that is a bit tortuous. I'm hoping that there is an easy hook on a per user basis that says can save = false.

Please Log in or Create an account to join the conversation.

block a user from save event 3 months 1 day ago #30874

  • gnarly
  • gnarly's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 9
  • Thank you received: 1
the (forum) text stripping seems to change my input in a way I don't understand and paste is blocked oddly. I understand its wise to keep keep active code out of a post but copy/paste on the altered text is also blocked so I can't even say that's not what I said. controllers/d hacked bollocks

Please Log in or Create an account to join the conversation.

Last edit: by gnarly. Reason: ignorance

block a user from save event 3 months 16 hours ago #30875

  • hekla
  • hekla's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 404
  • Thank you received: 192
You can use the code tag [cоde]your code[/cоde]. In the editor you find it under and it will be displayed as
your code
The following user(s) said Thank You: pctech, gnarly

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.238 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......