Emmanuel BENOîT
e64f847ec3
* Modified owned planet view to include a field which indicates whether mining settings are specific to the planet or come from the empire; modified "simple" game components accordingly * Modified stored procedures to only allow planet-specific mining settings updates when the planet actually uses planet-specific settings, and added a stored procedure which toggles the source of a planet's settings * Added corresponding parts to mining settings DAO and resources controller * Added session commands and server command handlers that toggle the source of the settings and that upload the settings * Split planet page template into multiple files for clarity and added the mining priorities form to the natural resources tab
15 lines
No EOL
305 B
PL/PgSQL
15 lines
No EOL
305 B
PL/PgSQL
/*
|
|
* Test privileges on emp.mset_toggle_source( INT , INT )
|
|
*/
|
|
BEGIN;
|
|
SELECT emp.mset_update_start( 1 );
|
|
|
|
SELECT plan( 1 );
|
|
|
|
SELECT diag_test_name( 'emp.mset_toggle_source() - Privileges' );
|
|
SELECT lives_ok( $$
|
|
SELECT emp.mset_toggle_source( 1 , 1 )
|
|
$$ );
|
|
|
|
SELECT * FROM finish( );
|
|
ROLLBACK; |