mirror of
https://github.com/sismics/docs.git
synced 2024-11-21 21:47:57 +01:00
Update database version after upgrade, fix 403 detection on sharing app
This commit is contained in:
parent
0aa9b44481
commit
84cb6c51dc
@ -1 +1,2 @@
|
||||
insert into T_ROLE(ROL_ID_C, ROL_NAME_C, ROL_CREATEDATE_D) values('user', 'User', NOW());
|
||||
update T_CONFIG set CFG_VALUE_C='3' where CFG_ID_C='DB_VERSION';
|
||||
|
@ -1 +1,2 @@
|
||||
create cached table T_SHARE ( SHA_ID_C varchar(36) not null, SHA_NAME_C varchar(36), SHA_IDDOCUMENT_C varchar(36) not null, SHA_CREATEDATE_D datetime, SHA_DELETEDATE_D datetime, primary key (SHA_ID_C) );
|
||||
update T_CONFIG set CFG_VALUE_C='4' where CFG_ID_C='DB_VERSION';
|
||||
|
@ -9,7 +9,7 @@ App.controller('Share', function($scope, $state, $stateParams, Restangular) {
|
||||
.then(function (data) {
|
||||
$scope.document = data;
|
||||
}, function (response) {
|
||||
if (response.data.status == 403) {
|
||||
if (response.status == 403) {
|
||||
$state.transitionTo('403');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user