iF.SVNAdmin icon indicating copy to clipboard operation
iF.SVNAdmin copied to clipboard

How to get the inherited permission when the user hasn't been assigned to a access-path?

Open JKChen opened this issue 9 years ago • 10 comments

How to get the inherited permission when the user hasn't been assigned to a access-path? Especially when a new user was created,what's his/her default permission to all access-path? There should be,right?

For example,I assign user Alice a ‘R-W’ permission to access-path ‘pro:/web’,and then,I create a sub-directory access-path named ‘pro:/web/trunk’ and I have not assigned Alice any permission to it. In fact,Alice get the ‘R-W’ permission to access-path ‘pro:/web/trunk’ which inherited from ‘pro:/web’. And how to get the inherited permission,that's it.

JKChen avatar Mar 17 '15 09:03 JKChen

The default permission can be defined by the * user. But i think it is not displayed as inherit permission.

It's usually a good practice to create the root access path "/" and assign no-permission to * user on it. This denies all access over all repositories to everyone by default.

mfreiholz avatar Mar 17 '15 09:03 mfreiholz

Oh i didn't read your second paragraph. Damn mobile version :P

What to you mean with "how to get the inherited permission?" - Where? Its generally managed by Apache/Subversion.

mfreiholz avatar Mar 17 '15 09:03 mfreiholz

Thanks a lot for your reply· The userview page only displays user's permission assigned to those access-path,how to display/list the inherited permission, e.g:Alice's ‘R-W’ permission to access-path ‘pro:/web/trunk’ in my example above.

JKChen avatar Mar 17 '15 09:03 JKChen

Well, the thing is, that those permissions you are mentioning are implicit and the user-view-page doesn't list implicit permissions. :-|

But that might be a nice feature: Listing and least those implicit sub-directories which does have an explicit Access-Path defined.

mfreiholz avatar Mar 17 '15 10:03 mfreiholz

Can you tell me some clue to get those implicit sub-directories permission of each user? Thanks for your help· :) You're so kind~

JKChen avatar Mar 17 '15 11:03 JKChen

I will take a look into it, whether it's possible to view those information with some sort of a quick-fix.

Responsible function: https://github.com/mfreiholz/iF.SVNAdmin/blob/master/include/ifcorelib/IF_SVNAuthFileC.class.php#L718

mfreiholz avatar Mar 18 '15 08:03 mfreiholz

Thank you so much.

JKChen avatar Mar 18 '15 09:03 JKChen

I had a deeper look and it would require a little bit more efford. So i will move it to V2-Rebuild.

mfreiholz avatar Mar 25 '15 16:03 mfreiholz

Thanks!

JKChen avatar May 29 '15 07:05 JKChen

Done in https://github.com/viruscamp/iF.SVNAdmin/tree/visualsvn

viruscamp avatar May 07 '22 14:05 viruscamp