projects
/
opencantine5
/
opencantine5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Contrôler que l'object à afficher appartient à la même organisation que l'utilisateur
[opencantine5/opencantine5.git]
/
app
/
controllers
/
comptes_controller.rb
diff --git
a/app/controllers/comptes_controller.rb
b/app/controllers/comptes_controller.rb
index
5e9f0bb
..
9c711cd
100644
(file)
--- a/
app/controllers/comptes_controller.rb
+++ b/
app/controllers/comptes_controller.rb
@@
-29,7
+29,7
@@
class ComptesController < ApplicationController
# GET /comptes/1
# GET /comptes/1.json
def show
- authorize
C
ompte
+ authorize
@c
ompte
@total_factures = @compte.factures.sum(:montant)
@total_paiements = @compte.paiements.sum(:montant)