[vhffs-dev] [996] Vhffs::Users::add_groups is not used and above all wrong... |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 996
Author: gradator
Date: 2007-10-16 14:22:53 +0000 (Tue, 16 Oct 2007)
Log Message:
-----------
Vhffs::Users::add_groups is not used and above all wrong... bye
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/User.pm
Modified: trunk/vhffs-api/src/Vhffs/User.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/User.pm 2007-10-16 14:12:27 UTC (rev 995)
+++ trunk/vhffs-api/src/Vhffs/User.pm 2007-10-16 14:22:53 UTC (rev 996)
@@ -130,25 +130,6 @@
return ($main->get_db_object()->do('SELECT uid FROM vhffs_users WHERE username = ?', undef, $username) > 0);
}
-#add a user to a group
-sub add_group
-{
- my $self;
- my $group;
- my $request;
-
- $self = shift;
- $group = shift;
-
- return -1 if ( !defined $group ) ;
-
- $request = $self->{'db'}->prepare('INSERT INTO vhffs_user_group VALUES( ?, ? )') or return -2;
-
- $request->execute($self->get_uid, $self->get_gid) or return -2;
-
- return 1;
-}
-
=pod
=head2 check_username