[Rt-devel] Re: Saved Searches

Jesse Vincent jesse at bestpractical.com
Fri Nov 3 15:56:00 EST 2006


Right. The idea is that for personal searches, you don't need to give
the user the global right to do those things to all saved searches.



On Sun, Oct 29, 2006 at 01:36:22PM +0100, Peer Michael wrote:
> Hi
>  
> I've seen, that in rt-3.4.5, every user, who will create, update or
> delete SavedSearch, must have the right 'ModifySelf'. The following
> diff, fixes this problem.
>  
> --- /opt/rt3/lib/RT/Attribute_Overlay.pm        2005-02-01
> 15:20:40.000000000 +0100
> +++ /opt/rt3/local/lib/RT/Attribute_Overlay.pm  2006-10-29
> 12:53:03.000000000 +0100
> @@ -72,14 +72,24 @@
>  # There are a number of attributes that users should be able to modify
> for themselves, such as saved searches
>  #  we could do this with a different set of "modify" rights, but that
> gets very hacky very fast. this is even faster and even
>  # hackier. we're hardcoding that a different set of rights are needed
> for attributes on oneself
> -our $PERSONAL_ACL_MAP = {
> -    SavedSearch => { create => 'ModifySelf',
> -                     update => 'ModifySelf',
> -                     delete => 'ModifySelf',
> -                     display => 'allow' },
> +our $PERSONAL_ACL_MAP = {
> +    SavedSearch => { create => 'CreateSavedSearch',
> +                     update => 'EditSavedSearches',
> +                     delete => 'EditSavedSearches',
> +                     display => 'LoadSavedSearch' },
>  
>  };
>  
>  
>  
> Now my question: is there a specific reason, why users must have
> ModifySelf-Rights when they want to create SavedSearches?
>  
> Thanks 
>  
> Michael Peer
>  
>  

-- 


More information about the Rt-devel mailing list