New user and group tests for caching and membership and default group settings.
Cache busting in User.pm. Allow Visitor to be formally added to groups 2 and 7. More placeholder work. Update Help for Secondary Admins.
This commit is contained in:
parent
3c1a42eeff
commit
e8a364f526
6 changed files with 65 additions and 17 deletions
|
|
@ -151,7 +151,7 @@ sub addUsers {
|
|||
$self->session->stow->delete("isInGroup");
|
||||
my $expireOffset = shift || $self->get("expireOffset");
|
||||
foreach my $uid (@{$users}) {
|
||||
next if ($uid eq '1');
|
||||
next if ($uid eq '1' and !isIn($self->getId, 1, 7));
|
||||
my ($isIn) = $self->session->db->quickArray("select count(*) from groupings where groupId=".$self->session->db->quote($self->getId)." and userId=".$self->session->db->quote($uid));
|
||||
unless ($isIn) {
|
||||
$self->session->db->write("insert into groupings (groupId,userId,expireDate) values (".$self->session->db->quote($self->getId).", ".$self->session->db->quote($uid).", ".($self->session->datetime->time()+$expireOffset).")");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue