All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit bb90546f authored by Leigh B Stoller's avatar Leigh B Stoller

Add an IsExpired() method.

parent 5055b065
......@@ -1147,6 +1147,19 @@ sub LoadAdditionalStuff($)
return 0;
}
sub IsExpired($)
{
my ($self) = @_;
my $expires = $self->enddate();
return 0
if (!defined($expires));
$expires = str2time($expires);
return (time() >= $expires);
}
sub CommonName($)
{
my ($self) = @_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment