[vhffs-dev] [1006] fixed bug #229

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1006
Author:   gradator
Date:     2007-10-18 22:27:03 +0000 (Thu, 18 Oct 2007)

Log Message:
-----------
fixed bug #229

Modified Paths:
--------------
    trunk/vhffs-panel/svn/prefs.pl
    trunk/vhffs-panel/templates/svn/prefs.tmpl
    trunk/vhffs-robots/src/svn_public.pl


Modified: trunk/vhffs-panel/svn/prefs.pl
===================================================================
--- trunk/vhffs-panel/svn/prefs.pl	2007-10-18 16:19:01 UTC (rev 1005)
+++ trunk/vhffs-panel/svn/prefs.pl	2007-10-18 22:27:03 UTC (rev 1006)
@@ -129,9 +129,6 @@
     $template->param( TEXT_ACL_ADMIN => gettext('Admin Rights on this object (ACL)') );
     $template->param( EXPLAIN_ADMIN_ACL => gettext('You can Manage rights on this service for each user in the VHFFS database. Please read help before manage it.') );
     $template->param( ADMIN_ACL => gettext('Ok, go to ACL admin') );
-    $template->param( TITLE_PERM => gettext('Fix permissions in this repository') );
-    $template->param( PERM_TEXT => gettext('Fixing permissions on a repository solve permission access on the repository. Can be helpful if you encounter problems') );
-    $template->param( TEXT_BUTTON_PERM => gettext('Fix them !') );
 
     $template->param( TITLE_OPT => gettext('Options') );
     $template->param( TEXT_OPT_ML => gettext('Notify changes on mailing-list :'));

Modified: trunk/vhffs-panel/templates/svn/prefs.tmpl
===================================================================
--- trunk/vhffs-panel/templates/svn/prefs.tmpl	2007-10-18 16:19:01 UTC (rev 1005)
+++ trunk/vhffs-panel/templates/svn/prefs.tmpl	2007-10-18 22:27:03 UTC (rev 1006)
@@ -32,20 +32,6 @@
 	</p>
 </form>
 
-
-<h2><tmpl_var name="TITLE_PERM"></h2>
-<form method="post" action="/svn/prefs_save.pl">
-	<p>
-		<label for="PUBLIC">
-			<tmpl_var name="PERM_TEXT">
-		</label>
-	</p>
-	<p class="button" id="buttonModify">
-		<input type="hidden" name="REPO_NAME" value="<tmpl_var name="TEXT_REPONAME">" />
-		<input type="submit" value="<tmpl_var name="TEXT_BUTTON_PERM">" />
-	</p>
-</form>
-
 <h2><tmpl_var name="TEXT_ACL_ADMIN"></h2>
 		
 <form method="post" action="../acl/view.pl">

Modified: trunk/vhffs-robots/src/svn_public.pl
===================================================================
--- trunk/vhffs-robots/src/svn_public.pl	2007-10-18 16:19:01 UTC (rev 1005)
+++ trunk/vhffs-robots/src/svn_public.pl	2007-10-18 22:27:03 UTC (rev 1006)
@@ -51,6 +51,9 @@
 	if( ( defined $user ) && ( defined $group ) ) {
 			Vhffs::Robots::vhffs_log( sprintf( "SVN change owner/group to %s/%s for repository %s" , $user->get_username , $group->get_groupname , $svn->get_dir ) , $vhffs);
 			Vhffs::Functions::change_owner_recur( $svn->get_dir , $user->get_uid , $group->get_gid );
+
+			Vhffs::Functions::chmod_recur( $svn->get_dir.'/hooks' , 0644 , 0755 );
+			Vhffs::Functions::change_owner_recur( $svn->get_dir.'/hooks' , 0 , 0 );
 	}
 
 	if( $svn->is_public == 1 ) {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/