Add a specific "edit event" menu

31 views
Skip to first unread message

stand...@gmail.com

unread,
Sep 16, 2015, 11:18:25 AM9/16/15
to MISP development
Hello,
I just want to separate some distribution role. When a user (without publishing rights) create an event, I've force him to publish its event for his organization only (uncomment line 178 on app/Model/Event.php and modify array to have only "0" case choice). That is Ok.

Now I should have a different view on the side_menu . When a admin role is connected he could change distribution parameter with the Edit Event side menu, but when a single user update its own events, i don't want have the capabilitie to change these distribution parameter.

I have cloned the edit function in the EventsController.php but i have always both menu entries (edit event / edit User event) Could have some help to fix this "problem"

I'm not a Cake expert ...

Thx

Andras Iklody

unread,
Sep 16, 2015, 11:27:27 AM9/16/15
to stand...@gmail.com, MISP development
Just to clarify what you are after: 
User can:
  - create events with distribution setting always being your org only
  - edit events, but not change the distribution setting

Admins can:
  - edit events and also change the distribution setting

Is this correct?

--
You received this message because you are subscribed to the Google Groups "MISP development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misp-devel+...@googlegroups.com.
To post to this group, send email to misp-...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/misp-devel/084730a6-2f64-4e14-8181-774d0045fc47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

stand...@gmail.com

unread,
Sep 18, 2015, 11:04:04 AM9/18/15
to MISP development
Yes I just want to create a super admin that can moderate and validate every event to decide if he could transmit event and attributes to others organisations inside the same community.
Superadmin can edit and switch "Your Org" to "Community" and single user don't, even if he re-edit and update its own event.

I don't know if it's possible without change so much some core sourcecode (better for further version)
Pleased to read you tomorrow
Reply all
Reply to author
Forward
0 new messages