Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldab groups test fails due to non existant dependancies... #23

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/WebGUI/Middleware/WGAccess.pm
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ sub call {
else {
$privs = JSON->new->utf8->decode($contents);
}
# in some cases there is nothing but state; default each list to an empty array
$privs->{user} ||= [ ];
$privs->{groups} ||= [ ];
$privs->{assets} ||= [ ];

return @$r = (403, [ 'Content-Type' => 'text/plain' ], [ 'Forbidden' ])
if $privs->{state} eq 'trash';
Expand Down
2 changes: 1 addition & 1 deletion t/Asset/Wobject/Survey.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ my $session = WebGUI::Test->session;

#----------------------------------------------------------------------------
# Tests
plan tests => 53;
plan tests => 57;

#----------------------------------------------------------------------------
# put your tests here
Expand Down
2 changes: 0 additions & 2 deletions t/Group/ldap_groups.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ use lib "$FindBin::Bin/../lib";

use WebGUI::Test;
use WebGUI::Session;
use WebGUI::Utility;

use WebGUI::User;
use WebGUI::Group;
use WebGUI::Cache;

use Test::More skip_all => 'Disabled until the test LDAP server is rejuvenated';
use Test::Deep;
Expand Down