Prevent that user can delete filter purgewhenfull

Forum for questions and support relating to the 1.25.x releases only.
Locked
User avatar
biologisch
Posts: 96
Joined: Fri Aug 24, 2007 10:37 am

Prevent that user can delete filter purgewhenfull

Post by biologisch »

Hi there!
Is it possible to prevent that user can delete the "purgewhenfull" Filter. Or is it possible to block the filter button for all users?

Thx,
biologisch
ZM Versions = 1.36.33
zmeventnotification Version = "6.1.28"
jonathancnewcomb
Posts: 38
Joined: Tue Sep 18, 2012 2:00 pm

Re: Prevent that user can delete filter purgewhenfull

Post by jonathancnewcomb »

You should be able to give them the permission "None" to System and that should prevent users from removing filters
User avatar
biologisch
Posts: 96
Joined: Fri Aug 24, 2007 10:37 am

Re: Prevent that user can delete filter purgewhenfull

Post by biologisch »

Hi!
Thanks for your quick response but thats not the right way. The user can delete it without "system" permissions.

Greets,
biologisch
ZM Versions = 1.36.33
zmeventnotification Version = "6.1.28"
jonathancnewcomb
Posts: 38
Joined: Tue Sep 18, 2012 2:00 pm

Re: Prevent that user can delete filter purgewhenfull

Post by jonathancnewcomb »

Ok, then maybe I was mistaken, I have created read-only users on my system that can view events and execute filters and the like, but can not delete, archive or remove or create filters. I have the following permissions set on these users and they do not have the "Save" or "Delete" buttons on the filters menu:

Enabled: yes
Stream: View
Events: View
Control: None
Monitors: View
System: None
Bandwidth: High (local users)

They have the filter button (no way to remove it) but they can not delete or modify the filters
User avatar
biologisch
Posts: 96
Joined: Fri Aug 24, 2007 10:37 am

Re: Prevent that user can delete filter purgewhenfull

Post by biologisch »

I get it!
Search in .../skins/classic/views/console.php
<?= makePopupButton( '?view=filter&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3c&filter[terms][0][val]=now', 'zmFilter', 'filter', $SLANG['Fil
ters'], canView( 'Events' ) ) ?>
replace with
<?= makePopupButton( '?view=filter&filter[terms][0][attr]=DateTime&filter[terms][0][op]=%3c&filter[terms][0][val]=now', 'zmFilter', 'filter', $SLANG['Fil
ters'], canView( 'System' ) ) ?>
ZM Versions = 1.36.33
zmeventnotification Version = "6.1.28"
jonathancnewcomb
Posts: 38
Joined: Tue Sep 18, 2012 2:00 pm

Re: Prevent that user can delete filter purgewhenfull

Post by jonathancnewcomb »

hmm looks like you just changed it from a "Event" group to a "System" group for that button. Pretty good thinking (probably where it should have been to begin with)
Locked