Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [WebSVN issue] websvn doesn't support the autz character of exclusion

websvn
Discussion topic

Back to topic list

[WebSVN issue] websvn doesn't support the autz character of exclusion

Reply

Author Bill Malls <mallsbill at gmail dot com>
Full name Bill Malls <mallsbill at gmail dot com>
Date 2013-04-18 14:38:32 PDT
Message Websvn doesn't support the autz character of exclusion (tilde)

I have corrected it by add this check in inList (include/auth.php)

preg_match('/^~@/', $key) && !in_array(substr($key, 1), $this->usersGroups)


So we have something like that :

 function inList($accessors, $user) { $output = UNDEFINED; foreach
($accessors as $key => $rights) { if (in_array($key, $this->usersGroups) ||
preg_match('/^~@/', $key) && !in_array(substr($key, 1), $this->usersGroups)
|| strcasecmp($key, $user) === 0) { if (strpos($rights, 'r') !== false) {
return ALLOW; } else { $output = DENY; } } } return $output; }
Maybe there's an easier way to check that.
Attachments

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[WebSVN issue] websvn doesn't support the autz character of exclusion Bill Malls <mallsbill at gmail dot com> Bill Malls <mallsbill at gmail dot com> 2013-04-18 14:38:32 PDT
Messages per page: