Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cf-online-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KS Pardubický kraj
cf-online-api
Commits
fd6f4427
Verified
Commit
fd6f4427
authored
4 years ago
by
Andrej Ramašeuski
Browse files
Options
Downloads
Patches
Plain Diff
Nepovolime pridavat zpravy do neotevrene dizkuse
parent
834f9e76
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/CF/Controller/Posts.pm
+1
-1
1 addition, 1 deletion
lib/CF/Controller/Posts.pm
lib/CF/Schema/Result/ProgramEntry.pm
+1
-0
1 addition, 0 deletions
lib/CF/Schema/Result/ProgramEntry.pm
openapi.yaml
+2
-0
2 additions, 0 deletions
openapi.yaml
sql/1/up.sql
+1
-0
1 addition, 0 deletions
sql/1/up.sql
with
5 additions
and
1 deletion
lib/CF/Controller/Posts.pm
+
1
−
1
View file @
fd6f4427
...
@@ -21,7 +21,7 @@ sub create ($c) {
...
@@ -21,7 +21,7 @@ sub create ($c) {
})
->
first
;
})
->
first
;
# Neni zadny aktivnibod rozpravy
# Neni zadny aktivnibod rozpravy
if
(
!
$program_entry
)
{
if
(
!
(
$program_entry
&&
$program_entry
->
discussion_opened
)
)
{
return
$c
->
error
(
403
,
'
Debate closed
');
return
$c
->
error
(
403
,
'
Debate closed
');
}
}
...
...
This diff is collapsed.
Click to expand it.
lib/CF/Schema/Result/ProgramEntry.pm
+
1
−
0
View file @
fd6f4427
...
@@ -22,6 +22,7 @@ __PACKAGE__->add_columns(
...
@@ -22,6 +22,7 @@ __PACKAGE__->add_columns(
finish
finish
is_approved
is_approved
is_live
is_live
discussion_opened
title
title
proposer
proposer
description
description
...
...
This diff is collapsed.
Click to expand it.
openapi.yaml
+
2
−
0
View file @
fd6f4427
...
@@ -55,6 +55,8 @@ components:
...
@@ -55,6 +55,8 @@ components:
nullable
:
true
nullable
:
true
is_live
:
is_live
:
type
:
boolean
type
:
boolean
discussion_opened
:
type
:
boolean
title
:
title
:
type
:
string
type
:
string
proposer
:
proposer
:
...
...
This diff is collapsed.
Click to expand it.
sql/1/up.sql
+
1
−
0
View file @
fd6f4427
...
@@ -7,6 +7,7 @@ create table "program" (
...
@@ -7,6 +7,7 @@ create table "program" (
"finish"
timestamp
,
"finish"
timestamp
,
"is_approved"
bool
not
null
default
'false'
,
"is_approved"
bool
not
null
default
'false'
,
"is_live"
bool
not
null
default
'false'
,
"is_live"
bool
not
null
default
'false'
,
"discussion_opened"
bool
not
null
default
'false'
,
"title"
text
not
null
,
"title"
text
not
null
,
"proposer"
text
,
"proposer"
text
,
"description"
text
,
"description"
text
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment