File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,11 @@ public function show($slug)
103103 return redirect ()->route ('sprints.index ' );
104104 }
105105
106+ if ($ sprint ->user_id !== Auth ()->user ()->id && $ sprint ->is_private ) {
107+ return redirect ()->route ('sprints.index ' )
108+ ->with ('error ' , trans ('gitscrum.private-sprint ' ));
109+ }
110+
106111 $ configStatus = ConfigStatus::type ('sprints ' )->get ();
107112
108113 return view ('sprints.show ' )
Original file line number Diff line number Diff line change 187187 'congratulations-the-product-backlog-has-been-updated-with-successfully ' => 'Congratulations! The Product Backlog has been successfully updated ' ,
188188 'favorited-successfully ' => 'Favorited ' ,
189189 'unfavorited-successfully ' => 'Unfavorited ' ,
190+ 'private-sprint ' => 'This sprint is private, only owner can access it ' ,
190191 'save ' => 'Save ' ,
191192 'issue-status-updated ' => '@:username updated the issue to: *:status* ' ,
192193 'issue-assigned ' => '@:assignedBy assigned an issue to: :assignedTo ' ,
Original file line number Diff line number Diff line change 188188 'congratulations-the-product-backlog-has-been-updated-with-successfully ' => '¡Felicidades! El product backlog ha sido actualizado correctamente ' ,
189189 'favorited-successfully ' => 'Añadido a favoritos correctamente ' ,
190190 'unfavorited-successfully ' => 'Eliminado de favoritos correctamente ' ,
191+ 'private-sprint ' => 'Este sprint es privado, sólo el propietario puede accesarlo ' ,
191192 'save ' => 'Guardar ' ,
192193 'issue-status-updated ' => '@:username actualizó el estado del issue a: *:status* ' ,
193194 'issue-assigned ' => '@:assignedBy asignó un issue a: :assignedTo ' ,
Original file line number Diff line number Diff line change 1- @if (Session:: has (' success' ) )
1+ @if (Session:: has (' success' ) || Session :: has ( ' error ' ) )
22 <div class =" col-lg-12" >
3- <div class =" alert alert-success alert-errors" >
3+ <div class =" alert alert-{{ Session :: has ( ' success' ) ? ' success ' : ' danger ' } } alert-errors" >
44 <button type =" button" class =" close" data-dismiss =" alert" aria-label =" Close" >
55 <span aria-hidden =" true" >× ; </span >
66 </button >
7- {{ Session:: get (' success' ) } }
7+ {{ Session:: has ( ' success ' ) ? Session :: get (' success' ) : Session :: get ( ' error ' ) } }
88 </div >
99 </div >
1010@endif
You can’t perform that action at this time.
0 commit comments