allow admin to migrate for any user/org

This commit is contained in:
Unknwon committed 2015-11-25 00:55:37 -05:00
1 parent ba92f4687e
commit 144663a3cf
6 files changed
+25 -20

No files matched your search

+1
View File
@@ -612,6 +612,7 @@ settings.slack_domain = Domain
settings.slack_channel = Channel
settings.deploy_keys = Deploy Keys
settings.add_deploy_key = Add Deploy Key
settings.deploy_key_desc = Deploy key only has read-only access. It is not same as personal account SSH keys.
settings.no_deploy_keys = You haven't added any deploy key.
settings.title = Title
settings.deploy_key_content = Content
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.7.22.1124 Beta"
const APP_VER = "0.7.22.1125 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
+16 -16
View File
@@ -299,7 +299,7 @@ func confAppIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/app.ini", size: 9746, mode: os.FileMode(420), modTime: time.Unix(1447884920, 0)}
info := bindataFileInfo{name: "conf/app.ini", size: 9746, mode: os.FileMode(420), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4339,7 +4339,7 @@ func confLocaleLocale_bgBgIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_bg-BG.ini", size: 68826, mode: os.FileMode(493), modTime: time.Unix(1448150136, 0)}
info := bindataFileInfo{name: "conf/locale/locale_bg-BG.ini", size: 68826, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4359,12 +4359,12 @@ func confLocaleLocale_deDeIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_de-DE.ini", size: 48077, mode: os.FileMode(493), modTime: time.Unix(1448150138, 0)}
info := bindataFileInfo{name: "conf/locale/locale_de-DE.ini", size: 48077, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\x7d\xeb\x72\xdc\x48\xae\xe6\x7f\x3e\x05\xdb\x13\x0e\xdb\x11\x72\x39\xba\xfb\xec\x25\x3a\xda\xee\x95\xa5\xf6\x65\x8e\x65\x69\x24\xf5\xcc\xce\x3a\x1c\x6c\x56\x91\xaa\xe2\xb8\x8a\xac\x26\x59\x92\x35\x27\x4e\xc4\x3e\xc0\x3e\xc0\xee\xeb\x9d\x27\x59\xe0\x03\x90\x17\x92\x25\xd9\x3d\x13\xc7\x3f\x2c\x56\x26\xf2\x86\x44\x22\x91\x48\x00\x99\x6f\xb7\x59\x51\x76\x8b\xf4\x79\x7a\x98\x6e\xf3\xaa\x5e\x97\x5d\x97\x76\xe5\xfa\xea\xe9\xaa\xe9\xfa\xb2\x48\x5f\x57\x3d\xfd\x6e\xaf\xab\x45\x99\x24\xab\x66\x53\x12\xe8\x1b\xfa\x93\x14\x79\xb7\x9a\x37\x79\x5b\x50\xc2\xb1\x7d\x27\xe5\xe7\xed\xba\x69\x19\xe8\x67\xf9\x4a\x56\xe5\x7a\xcb\x65\xe8\x4f\xd2\x55\xcb\x3a\xab\x6a\xfa\x79\x41\x5f\xe9\xdb\x5a\x52\x9a\x5d\x6f\x49\xa7\xbb\x5e\xd2\x76\x5b\x4b\xfa\x65\x9b\xb4\xe5\xb2\xa2\xde\xb4\x94\x74\xae\x9f\xc9\x4d\x39\xef\xaa\x9e\x5b\xfa\x8b\x7c\x25\xd7\x65\xdb\x55\x0d\xd7\xfe\x67\xf9\x4a\xb6\xf9\x92\x01\xce\xe8\x4f\xd2\x97\x9b\xed\x3a\x47\x81\x4b\xfd\x4c\xd6\x79\xbd\xdc\x09\xcc\x3b\xfd\x4c\x16\x6d\x49\x59\x59\x5d\xde\x50\xea\x11\x7e\xcc\x66\xb3\x64\x47\x48\xc8\xb6\x6d\x73\x55\xad\xcb\x2c\xaf\x8b\x6c\x23\xc3\xfc\x85\xd2\x53\x4d\x4f\x29\x3d\xe5\x74\x0c\xa1\x2c\x68\xa8\x59\xde\xe9\x38\x08\x97\x34\xf2\xbc\x4b\x50\x55\x9d\x6f\xac\x34\x7f\x26\xe5\x26\xaf\xd6\x8c\xb5\xa7\xfc\x41\x1d\xef\xba\x9b\x06\xb8\x3d\xd3\x4f\x42\x42\xd6\xdf\x6e\x4b\xe0\xe0\xe9\x25\x7d\x25\x8b\x7c\xdb\x2f\x56\x39\xf7\x53\xbe\x12\x02\xda\x36\x84\x8c\xa6\xbd\x05\x9c\xfd\x48\x9a\x76\x99\xd7\xd5\xdf\xf3\x5e\x10\x74\x1a\xfc\x4c\x36\x55\xdb\x36\x8c\xdb\x13\x7c\x24\x34\xf4\x8c\xeb\xa1\x94\xf7\x84\x85\xa0\x16\xce\xd9\x54\xcb\x56\xd0\xc8\x99\x27\xf8\xc5\xb5\x70\xde\x55\xd3\x7e\xd2\x8c\x57\xfc\x39\x28\x4a\x9d\xd0\xdc\xb8\xfd\xbc\x26\xc4\x6b\xee\x09\x7e\x44\x00\x5d\x92\x17\x1b\x42\xe5\x36\xaf\x4b\xc6\xd1\x21\xff\x22\xbc\xd0\xaf\x24\x5f\x2c\x9a\x5d\xdd\x67\x5d\xd9\xf7\x55\xbd\x64\x64\x1f\x4a\x52\x7a\xa1\x49\x49\x90\xe7\xd2\x6e\x9b\x9d\x9b\x4e\x4a\xff\x2b\xfd\x4c\xcf\xe4\xa7\xe4\x05\x85\x90\xe9\x4a\xf2\x48\xba\xec\xaa\x2c\x0b\x19\x4b\x97\xbe\xa2\xef\x64\xbb\x5b\xaf\x09\x6b\xbf\xed\xca\xae\xe7\x42\x67\xf4\x9b\xc6\x2f\xbf\x93\xaa\xeb\xe8\x83\x92\xdf\xe2\x23\xa1\xa9\xab\x17\x18\xcc\x11\x3e\x92\xe4\x43\x57\xe6\xed\x62\xf5\x31\x91\xbf\xe8\x2b\x7f\x30\xed\xed\x9b\x54\x26\x24\x25\x22\x69\xc1\x1a\x48\x16\x4d\xc1\x3f\x8e\xe8\x0f\x55\x5d\xd5\x5d\x9f\xaf\xd7\x1f\x13\xfd\x60\x30\xf9\x92\x09\xe8\xab\x1e\x58\xd0\xc4\xf4\xa2\x2f\xb7\x1d\xcf\x60\xfa\xaa\x6a\xbb\xfe\x69\x5f\x11\xb1\x9e\xef\xea\xa4\x68\x16\x9f\x68\x19\xf0\x92\x46\xcb\x6f\xaf\x52\x42\xd6\x23\x5a\x08\xed\xae\xae\x09\x3d\xe9\xeb\x86\x50\x46\xcd\x54\xd4\xfe\x31\xa0\x0f\xd2\xed\xba\xcc\x3b\x02\x29\xf3\x22\xfd\x31\x4f\xfb\xbc\x5d\x96\xfd\xf3\x07\xd9\x9c\x96\xdf\xa7\x07\xe9\xaa\x2d\xaf\x9e\x3f\x78\xd8\x3d\x78\xf1\x7a\x47\xc5\xd6\x55\x5d\x76\x3f\x3e\xcb\x5f\xa4\x8b\x9c\x72\x08\x8d\xb7\xe9\xbc\xbc\xe2\xd5\x46\x6d\xa5\x44\xe5\xf5\x92\x57\xda\x6d\xbf\xe2\x06\x89\x12\xe8\xa3\x4b\x79\xa9\x7f\x93\xf0\x04\x10\x2b\xc8\x8a\xb9\xb1\x35\x74\x08\xc9\x2d\x4d\xc0\xc9\xed\xc5\x9f\xde\x1d\xa4\x67\xc4\xdb\x96\x6d\x89\x6f\xfa\x8f\x4a\x7c\x9f\xd2\x68\x2f\xab\xe3\x97\xb3\x84\xca\x1a\x42\x8e\xf3\x3e\x9f\x73\xdf\xdd\xec\x73\xa6\x2c\x42\x97\x87\xa5\xc8\xdc\x12\x9c\xb1\xeb\xa3\x69\x99\x5a\xc8\x54\x87\x2e\x7f\x57\xc7\x7b\xe6\x01\x94\xee\x30\x7b\x26\x38\xa3\xaa\xd2\xb7\xef\xdf\x9f\x1e\xbf\x4c\xcb\x7a\x49\x98\x49\x6f\xaa\x7e\x95\xee\xfa\xab\xff\x9e\x2d\xcb\xba\x6c\xf3\x75\xb6\xa8\x18\x29\x2d\x11\x6c\x4a\x58\x92\x21\xce\x92\xae\x5b\x13\x8b\x02\x15\x5c\x5c\xbc\x4b\x4f\x98\x12\xb6\x79\xbf\x42\x47\xfa\x55\xd2\xfd\xb6\x66\x44\xb9\x06\x2f\x57\x65\x8a\xc5\x00\xa0\xe6\x6a\x88\x97\xb4\xd0\xbe\xce\x92\xb2\x6d\x33\xe2\xa0\xfd\x2d\xa3\x59\xeb\xdc\x07\x2d\xd5\x11\xb5\xd7\x4d\x4f\xd3\x98\xa2\x9c\x54\x51\xd5\xd7\xf9\xba\x2a\x08\xd9\x1e\x21\x71\x59\x24\x16\x0d\xcd\x1b\x97\x26\xca\x6c\x6e\x30\xd4\x7c\x41\x1b\x40\x97\x3e\x98\x3d\x00\xc7\x7d\xf0\xf4\xc1\x2c\xa9\x9b\x4c\xb8\x04\xf3\xe6\xa2\xea\xf2\x39\xf1\x69\xd9\x37\x5a\xe3\x7a\x7f\x65\xfa\x91\xae\x28\x44\x1a\x41\x30\x6e\x79\x2f\xc2\x16\xc0\xc4\x95\x13\xc3\x06\xb3\x51\x36\x13\x8e\xdd\x78\x92\x9b\x5f\x61\x4b\x2e\x61\x34\xe6\xc4\x26\xcc\xa8\xeb\x70\xbb\x5d\x57\x0b\x69\xfa\xb5\xe4\x79\x42\xe3\x9d\x59\x91\x12\xc2\x81\x50\x2c\x2f\x20\x17\xea\x35\xb3\xad\x34\xe2\xf3\x28\xbf\x2a\x69\xe5\xac\x76\x4b\xd9\x9d\xd6\xcd\xae\xf8\x06\x0c\xc5\x66\xce\xf3\x93\xf4\xbc\xa1\x0e\x83\x3a\x1c\x80\x6f\xe2\x90\x18\x03\x0b\x03\x6d\xb9\x69\x7a\x46\x9c\x16\xab\x68\x7a\x6e\x2a\xca\xa4\x91\x76\xf9\x35\xb1\xc5\xbe\x91\x25\x59\xd0\x92\x5b\x70\xc5\xc4\xc1\x76\xb4\xa3\xcb\xb2\x20\x3e\x22\x4b\xc3\xd2\x62\x1a\x04\xd4\x66\x47\xab\x69\x45\x95\x31\xe2\x59\x22\xa1\x2a\xa7\xfa\x89\x21\x51\x3d\x58\xe5\xb4\x72\x1b\xda\x3c\x79\xa2\x8f\xf1\xa1\xbf\xc3\xfa\xa9\x57\xf9\xd5\x15\xf5\xaa\xa3\x55\xf1\x26\x5d\xac\x1b\x5a\x52\xbf\x9c\xbf\xeb\x78\xc1\xac\xb2\x6d\xd3\x42\x12\xa1\xac\x33\xfa\x74\x69\x01\xa2\x19\xa2\xde\x6d\xe6\xf4\xeb\x66\x55\x11\xa3\x06\xda\xb9\x04\x4b\x49\x94\x4a\x4d\xec\x3a\x9a\xc2\x83\x94\x96\x3Line truncated
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\x7d\xeb\x72\xdc\x48\xae\xe6\x7f\x3e\x05\xdb\x13\x0e\xdb\x11\x72\x39\xba\xfb\xec\x25\x3a\xda\xee\x95\xa5\xf6\x65\x8e\x65\x69\x24\xf5\xcc\xce\x3a\x1c\x6c\x56\x91\xaa\xe2\xb8\x8a\xac\x26\x59\x92\x35\x27\x4e\xc4\x3e\xc0\x3e\xc0\xee\xeb\x9d\x27\x59\xe0\x03\x90\x17\x92\x25\xd9\x3d\x13\xc7\x3f\x2c\x56\x26\xf2\x86\x44\x22\x91\x48\x00\x99\x6f\xb7\x59\x51\x76\x8b\xf4\x79\x7a\x98\x6e\xf3\xaa\x5e\x97\x5d\x97\x76\xe5\xfa\xea\xe9\xaa\xe9\xfa\xb2\x48\x5f\x57\x3d\xfd\x6e\xaf\xab\x45\x99\x24\xab\x66\x53\x12\xe8\x1b\xfa\x93\x14\x79\xb7\x9a\x37\x79\x5b\x50\xc2\xb1\x7d\x27\xe5\xe7\xed\xba\x69\x19\xe8\x67\xf9\x4a\x56\xe5\x7a\xcb\x65\xe8\x4f\xd2\x55\xcb\x3a\xab\x6a\xfa\x79\x41\x5f\xe9\xdb\x5a\x52\x9a\x5d\x6f\x49\xa7\xbb\x5e\xd2\x76\x5b\x4b\xfa\x65\x9b\xb4\xe5\xb2\xa2\xde\xb4\x94\x74\xae\x9f\xc9\x4d\x39\xef\xaa\x9e\x5b\xfa\x8b\x7c\x25\xd7\x65\xdb\x55\x0d\xd7\xfe\x67\xf9\x4a\xb6\xf9\x92\x01\xce\xe8\x4f\xd2\x97\x9b\xed\x3a\x47\x81\x4b\xfd\x4c\xd6\x79\xbd\xdc\x09\xcc\x3b\xfd\x4c\x16\x6d\x49\x59\x59\x5d\xde\x50\xea\x11\x7e\xcc\x66\xb3\x64\x47\x48\xc8\xb6\x6d\x73\x55\xad\xcb\x2c\xaf\x8b\x6c\x23\xc3\xfc\x85\xd2\x53\x4d\x4f\x29\x3d\xe5\x74\x0c\xa1\x2c\x68\xa8\x59\xde\xe9\x38\x08\x97\x34\xf2\xbc\x4b\x50\x55\x9d\x6f\xac\x34\x7f\x26\xe5\x26\xaf\xd6\x8c\xb5\xa7\xfc\x41\x1d\xef\xba\x9b\x06\xb8\x3d\xd3\x4f\x42\x42\xd6\xdf\x6e\x4b\xe0\xe0\xe9\x25\x7d\x25\x8b\x7c\xdb\x2f\x56\x39\xf7\x53\xbe\x12\x02\xda\x36\x84\x8c\xa6\xbd\x05\x9c\xfd\x48\x9a\x76\x99\xd7\xd5\xdf\xf3\x5e\x10\x74\x1a\xfc\x4c\x36\x55\xdb\x36\x8c\xdb\x13\x7c\x24\x34\xf4\x8c\xeb\xa1\x94\xf7\x84\x85\xa0\x16\xce\xd9\x54\xcb\x56\xd0\xc8\x99\x27\xf8\xc5\xb5\x70\xde\x55\xd3\x7e\xd2\x8c\x57\xfc\x39\x28\x4a\x9d\xd0\xdc\xb8\xfd\xbc\x26\xc4\x6b\xee\x09\x7e\x44\x00\x5d\x92\x17\x1b\x42\xe5\x36\xaf\x4b\xc6\xd1\x21\xff\x22\xbc\xd0\xaf\x24\x5f\x2c\x9a\x5d\xdd\x67\x5d\xd9\xf7\x55\xbd\x64\x64\x1f\x4a\x52\x7a\xa1\x49\x49\x90\xe7\xd2\x6e\x9b\x9d\x9b\x4e\x4a\xff\x2b\xfd\x4c\xcf\xe4\xa7\xe4\x05\x85\x90\xe9\x4a\xf2\x48\xba\xec\xaa\x2c\x0b\x19\x4b\x97\xbe\xa2\xef\x64\xbb\x5b\xaf\x09\x6b\xbf\xed\xca\xae\xe7\x42\x67\xf4\x9b\xc6\x2f\xbf\x93\xaa\xeb\xe8\x83\x92\xdf\xe2\x23\xa1\xa9\xab\x17\x18\xcc\x11\x3e\x92\xe4\x43\x57\xe6\xed\x62\xf5\x31\x91\xbf\xe8\x2b\x7f\x30\xed\xed\x9b\x54\x26\x24\x25\x22\x69\xc1\x1a\x48\x16\x4d\xc1\x3f\x8e\xe8\x0f\x55\x5d\xd5\x5d\x9f\xaf\xd7\x1f\x13\xfd\x60\x30\xf9\x92\x09\xe8\xab\x1e\x58\xd0\xc4\xf4\xa2\x2f\xb7\x1d\xcf\x60\xfa\xaa\x6a\xbb\xfe\x69\x5f\x11\xb1\x9e\xef\xea\xa4\x68\x16\x9f\x68\x19\xf0\x92\x46\xcb\x6f\xaf\x52\x42\xd6\x23\x5a\x08\xed\xae\xae\x09\x3d\xe9\xeb\x86\x50\x46\xcd\x54\xd4\xfe\x31\xa0\x0f\xd2\xed\xba\xcc\x3b\x02\x29\xf3\x22\xfd\x31\x4f\xfb\xbc\x5d\x96\xfd\xf3\x07\xd9\x9c\x96\xdf\xa7\x07\xe9\xaa\x2d\xaf\x9e\x3f\x78\xd8\x3d\x78\xf1\x7a\x47\xc5\xd6\x55\x5d\x76\x3f\x3e\xcb\x5f\xa4\x8b\x9c\x72\x08\x8d\xb7\xe9\xbc\xbc\xe2\xd5\x46\x6d\xa5\x44\xe5\xf5\x92\x57\xda\x6d\xbf\xe2\x06\x89\x12\xe8\xa3\x4b\x79\xa9\x7f\x93\xf0\x04\x10\x2b\xc8\x8a\xb9\xb1\x35\x74\x08\xc9\x2d\x4d\xc0\xc9\xed\xc5\x9f\xde\x1d\xa4\x67\xc4\xdb\x96\x6d\x89\x6f\xfa\x8f\x4a\x7c\x9f\xd2\x68\x2f\xab\xe3\x97\xb3\x84\xca\x1a\x42\x8e\xf3\x3e\x9f\x73\xdf\xdd\xec\x73\xa6\x2c\x42\x97\x87\xa5\xc8\xdc\x12\x9c\xb1\xeb\xa3\x69\x99\x5a\xc8\x54\x87\x2e\x7f\x57\xc7\x7b\xe6\x01\x94\xee\x30\x7b\x26\x38\xa3\xaa\xd2\xb7\xef\xdf\x9f\x1e\xbf\x4c\xcb\x7a\x49\x98\x49\x6f\xaa\x7e\x95\xee\xfa\xab\xff\x9e\x2d\xcb\xba\x6c\xf3\x75\xb6\xa8\x18\x29\x2d\x11\x6c\x4a\x58\x92\x21\xce\x92\xae\x5b\x13\x8b\x02\x15\x5c\x5c\xbc\x4b\x4f\x98\x12\xb6\x79\xbf\x42\x47\xfa\x55\xd2\xfd\xb6\x66\x44\xb9\x06\x2f\x57\x65\x8a\xc5\x00\xa0\xe6\x6a\x88\x97\xb4\xd0\xbe\xce\x92\xb2\x6d\x33\xe2\xa0\xfd\x2d\xa3\x59\xeb\xdc\x07\x2d\xd5\x11\xb5\xd7\x4d\x4f\xd3\x98\xa2\x9c\x54\x51\xd5\xd7\xf9\xba\x2a\x08\xd9\x1e\x21\x71\x59\x24\x16\x0d\xcd\x1b\x97\x26\xca\x6c\x6e\x30\xd4\x7c\x41\x1b\x40\x97\x3e\x98\x3d\x00\xc7\x7d\xf0\xf4\xc1\x2c\xa9\x9b\x4c\xb8\x04\xf3\xe6\xa2\xea\xf2\x39\xf1\x69\xd9\x37\x5a\xe3\x7a\x7f\x65\xfa\x91\xae\x28\x44\x1a\x41\x30\x6e\x79\x2f\xc2\x16\xc0\xc4\x95\x13\xc3\x06\xb3\x51\x36\x13\x8e\xdd\x78\x92\x9b\x5f\x61\x4b\x2e\x61\x34\xe6\xc4\x26\xcc\xa8\xeb\x70\xbb\x5d\x57\x0b\x69\xfa\xb5\xe4\x79\x42\xe3\x9d\x59\x91\x12\xc2\x81\x50\x2c\x2f\x20\x17\xea\x35\xb3\xad\x34\xe2\xf3\x28\xbf\x2a\x69\xe5\xac\x76\x4b\xd9\x9d\xd6\xcd\xae\xf8\x06\x0c\xc5\x66\xce\xf3\x93\xf4\xbc\xa1\x0e\x83\x3a\x1c\x80\x6f\xe2\x90\x18\x03\x0b\x03\x6d\xb9\x69\x7a\x46\x9c\x16\xab\x68\x7a\x6e\x2a\xca\xa4\x91\x76\xf9\x35\xb1\xc5\xbe\x91\x25\x59\xd0\x92\x5b\x70\xc5\xc4\xc1\x76\xb4\xa3\xcb\xb2\x20\x3e\x22\x4b\xc3\xd2\x62\x1a\x04\xd4\x66\x47\xab\x69\x45\x95\x31\xe2\x59\x22\xa1\x2a\xa7\xfa\x89\x21\x51\x3d\x58\xe5\xb4\x72\x1b\xda\x3c\x79\xa2\x8f\xf1\xa1\xbf\xc3\xfa\xa9\x57\xf9\xd5\x15\xf5\xaa\xa3\x55\xf1\x26\x5d\xac\x1b\x5a\x52\xbf\x9c\xbf\xeb\x78\xc1\xac\xb2\x6d\xd3\x42\x12\xa1\xac\x33\xfa\x74\x69\x01\xa2\x19\xa2\xde\x6d\xe6\xf4\xeb\x66\x55\x11\xa3\x06\xda\xb9\x04\x4b\x49\x94\x4a\x4d\xec\x3a\x9a\xc2\x83\x94\x96\x3Line truncated
func confLocaleLocale_enUsIniBytes() ([]byte, error) {
return bindataRead(
@@ -4379,7 +4379,7 @@ func confLocaleLocale_enUsIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 45505, mode: os.FileMode(420), modTime: time.Unix(1448170884, 0)}
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 45615, mode: os.FileMode(420), modTime: time.Unix(1448429720, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4399,7 +4399,7 @@ func confLocaleLocale_esEsIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_es-ES.ini", size: 49106, mode: os.FileMode(493), modTime: time.Unix(1448150136, 0)}
info := bindataFileInfo{name: "conf/locale/locale_es-ES.ini", size: 49106, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4419,7 +4419,7 @@ func confLocaleLocale_frFrIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_fr-FR.ini", size: 49044, mode: os.FileMode(493), modTime: time.Unix(1448150136, 0)}
info := bindataFileInfo{name: "conf/locale/locale_fr-FR.ini", size: 49044, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4439,7 +4439,7 @@ func confLocaleLocale_itItIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_it-IT.ini", size: 46492, mode: os.FileMode(493), modTime: time.Unix(1448150140, 0)}
info := bindataFileInfo{name: "conf/locale/locale_it-IT.ini", size: 46492, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4459,7 +4459,7 @@ func confLocaleLocale_jaJpIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_ja-JP.ini", size: 54219, mode: os.FileMode(493), modTime: time.Unix(1448150140, 0)}
info := bindataFileInfo{name: "conf/locale/locale_ja-JP.ini", size: 54219, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4479,7 +4479,7 @@ func confLocaleLocale_lvLvIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_lv-LV.ini", size: 49332, mode: os.FileMode(493), modTime: time.Unix(1448150156, 0)}
info := bindataFileInfo{name: "conf/locale/locale_lv-LV.ini", size: 49332, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4499,7 +4499,7 @@ func confLocaleLocale_nlNlIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_nl-NL.ini", size: 45884, mode: os.FileMode(493), modTime: time.Unix(1448150144, 0)}
info := bindataFileInfo{name: "conf/locale/locale_nl-NL.ini", size: 45884, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4519,7 +4519,7 @@ func confLocaleLocale_plPlIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_pl-PL.ini", size: 46574, mode: os.FileMode(493), modTime: time.Unix(1448150144, 0)}
info := bindataFileInfo{name: "conf/locale/locale_pl-PL.ini", size: 46574, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4539,7 +4539,7 @@ func confLocaleLocale_ptBrIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_pt-BR.ini", size: 47612, mode: os.FileMode(493), modTime: time.Unix(1448150152, 0)}
info := bindataFileInfo{name: "conf/locale/locale_pt-BR.ini", size: 47612, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4559,7 +4559,7 @@ func confLocaleLocale_ruRuIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_ru-RU.ini", size: 69543, mode: os.FileMode(493), modTime: time.Unix(1448150146, 0)}
info := bindataFileInfo{name: "conf/locale/locale_ru-RU.ini", size: 69543, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4579,7 +4579,7 @@ func confLocaleLocale_zhCnIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_zh-CN.ini", size: 43500, mode: os.FileMode(493), modTime: time.Unix(1448150150, 0)}
info := bindataFileInfo{name: "conf/locale/locale_zh-CN.ini", size: 43500, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4599,7 +4599,7 @@ func confLocaleLocale_zhHkIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_zh-HK.ini", size: 43885, mode: os.FileMode(493), modTime: time.Unix(1448150152, 0)}
info := bindataFileInfo{name: "conf/locale/locale_zh-HK.ini", size: 43885, mode: os.FileMode(493), modTime: time.Unix(1448219570, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
+3 -2
View File
@@ -189,7 +189,8 @@ func CreateOrgRepo(ctx *middleware.Context, opt api.CreateRepoOption) {
func MigrateRepo(ctx *middleware.Context, form auth.MigrateRepoForm) {
ctxUser := ctx.User
// Not equal means current user is an organization.
// Not equal means context user is an organization,
// or is another user/organization if current user is admin.
if form.Uid != ctxUser.Id {
org, err := models.GetUserByID(form.Uid)
if err != nil {
@@ -208,7 +209,7 @@ func MigrateRepo(ctx *middleware.Context, form auth.MigrateRepoForm) {
return
}
if ctxUser.IsOrganization() {
if ctxUser.IsOrganization() && !ctx.User.IsAdmin {
// Check ownership of organization.
if !ctxUser.IsOwnedBy(ctx.User.Id) {
ctx.APIError(403, "", "Given user is not owner of organization.")
+1 -1
View File
@@ -1 +1 @@
0.7.22.1124 Beta
0.7.22.1125 Beta
+3
View File
@@ -53,6 +53,9 @@
<div class="ui attached segment">
<form class="ui form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<div class="field">
{{.i18n.Tr "repo.settings.deploy_key_desc"}}
</div>
<div class="field {{if .Err_Title}}error{{end}}">
<label for="title">{{.i18n.Tr "repo.settings.title"}}</label>
<input id="title" name="title" value="{{.title}}" autofocus required>