mirror of
https://github.com/Kenshin/simpread.git
synced 2026-02-01 15:41:29 +00:00
Fix admin update other user uid changed bug.
This commit is contained in:
parent
e1db5eb2c5
commit
be3fec76af
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user