Fix admin update other user uid changed bug.

This commit is contained in:
Kenshin 2018-07-23 12:55:01 +08:00
parent e1db5eb2c5
commit be3fec76af

View File

@ -260,6 +260,10 @@ export default class Import extends React.Component {
insert( method, site ) {
loadingState( "init" );
if ( site.id.substr(0,8) != cur_user.uid.substr(0,8) ) {
new Notify().Render( 2, "注意:当前站并不是(管理员)的站。" );
delete site.uid;
}
$.ajax({
url : getService( "/sites/service/" + method ),
type : "POST",