Skip to content

Commit

Permalink
Downgrade needs to call correct method.
Browse files Browse the repository at this point in the history
_is_owner, not is_owner.
  • Loading branch information
dmcbride committed Jan 27, 2016
1 parent 17b58fc commit e4d89b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Lacuna/RPC/Building.pm
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ sub downgrade {
unless ($body->parliament && $body->parliament->effective_level >= 2) {
confess [1013, 'You need to have a level 2 Parliament to downgrade a module.'];
}
unless ($self->is_owner($session, $building)) {
unless ($self->_is_owner($session, $building)) {
my $name = $building->name.' ('.$building->x.','.$building->y.')';
my $proposition = Lacuna->db->resultset('Lacuna::DB::Result::Propositions')->new({
type => 'DowngradeModule',
Expand Down
1 change: 1 addition & 0 deletions var/www/public/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Add: Adding docker support.
- Fix: Emails to GG owners during fissure explosion were missing numbers.
- Fix: Halls don't need to show up as buildable.
- Fix: Downgrade of SS modules fixed.

3.0918:
- Fix: Unallied players should never see anyone else in purple on the starmap.
Expand Down

0 comments on commit e4d89b0

Please sign in to comment.