On Tuesday, April 29, 2014 3:29:53 AM UTC-7, Joost Kraaijeveld wrote:
>
> Hi, 
>
> I would like to handle the viewing of the source code of my projects 
> according to the permissions I have set in my SVN access file. 
>
> I have done the following: 
>
> authz_file = /path/to/.svn_accessfile 
> authz_module_name = module_name_in_svn_accessfile 
> permission_policies =  AuthzSourcePolicy, DefaultPermissionPolicy, 
> LegacyAttachmentPolicy 
>
>
>
> If I access the repository with a webbrowser, Apache honours the 
> settings of the SVN access file. However Trac does not honour the file: 
> it always shows full read access, even for anonymous access. Trac does 
> read the file, as shown by the logfile (Trac[svn_authz] INFO: Parsing 
> authz file: /path/to/.svn_accessfile). 
>
> Is there more this than described above? 
>
> TIA 
>
> Joost 
>


Sorry for the long delayed reply.  I have much more experience working with 
AuthzPolicy than AuthzSourcePolicy, but I think the following should hold 
true for the latter as it does for the former - if you set the log level to 
debug, you should be able to see the results on permission checks when you 
try to access a resource. For example: 
12:45:51 AM Trac[authz_policy] DEBUG: Checking BROWSER_VIEW on 
repository:*@*/source:/@*
That might yield some insight.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to