Rob Harrington
|
8132f07d88
|
Adding visible products method to permissions
|
2015-05-20 15:53:10 +10:00 |
|
Rob Harrington
|
01d4cf6ecf
|
Renaming managed_products permissions method to editable_products
|
2015-05-20 15:02:36 +10:00 |
|
Rob Harrington
|
a7019e7e78
|
Adding permissions method for order report enterprises
|
2015-05-07 12:50:56 +10:00 |
|
Rob Harrington
|
bd66091d75
|
Push logic for checking of user super admin status down into private method
|
2015-05-07 12:50:56 +10:00 |
|
Rob Harrington
|
d8f5669fbb
|
Renaming granted > related_enterprises_granted
|
2015-05-07 12:50:56 +10:00 |
|
Rob Harrington
|
5806f50a84
|
Renaming granting > related_enterprises_granting
|
2015-05-07 12:50:56 +10:00 |
|
Rob Harrington
|
5cd528a87d
|
Removing obsolete related_enterprises_with permission method
|
2015-05-07 12:50:56 +10:00 |
|
Rob Harrington
|
f0f7e0ee2f
|
Making permissions method managed_and_related_enterprise_with method more specific
|
2015-05-07 12:50:56 +10:00 |
|
Rob Harrington
|
7ffe0f042e
|
Moving accessible_by scope on Enterprise to permissions
|
2015-05-07 12:50:55 +10:00 |
|
Rob Harrington
|
0a03483e36
|
Adding permissions methods for visible and editable orders and line_items
|
2015-05-07 12:50:55 +10:00 |
|
Rob Harrington
|
bc89018ee1
|
Refer to the right variable doofus
|
2015-04-11 23:24:50 +10:00 |
|
Rob Harrington
|
6f81a9ba18
|
Save common permission method results as instance variables
|
2015-04-11 22:53:57 +10:00 |
|
Rob Harrington
|
26d55baa35
|
Moving order cycle permissions to their own permissions class
|
2015-04-11 21:11:10 +10:00 |
|
Rob Harrington
|
c28ebf63ab
|
As participating Hub, I cannot edit incoming exchanges despite being granted P-OC by the producer
|
2015-04-09 13:41:43 +10:00 |
|
Rob Harrington
|
b1624a733e
|
Editable variants for incoming exchanges for hubs include those for producers that have granted my hub P-OC
|
2015-04-08 13:38:37 +10:00 |
|
Rob Harrington
|
b8ce6ed0fc
|
Coordinator can see any enterprises that are already in the order cycle
|
2015-04-08 13:28:49 +10:00 |
|
Rob Harrington
|
104a8ddecf
|
Refactor order_cycle_enterpises_for permission method, now requires an order cycle
|
2015-04-08 13:00:17 +10:00 |
|
Rob Harrington
|
4dcfec1de9
|
make enterprises_for_order_cycle permissions more correct
|
2015-04-08 12:12:02 +10:00 |
|
Rob Harrington
|
8859aa27ee
|
Slight refactor of order cycle enterprises
|
2015-04-08 10:33:32 +10:00 |
|
Rob Harrington
|
24062e5585
|
Adding permissions for outgoing hubs to see producers whose variants they are distributing, despite P-OC not existing
|
2015-04-08 10:15:50 +10:00 |
|
Rob Harrington
|
4a87798bb4
|
Variants belonging to a producer I manager that are already in an outgoing an exchange need not be editable
|
2015-04-06 23:30:43 +10:00 |
|
Rob Harrington
|
f20844c2a0
|
Adding editable scope for variants in outgoing exchanges
|
2015-04-05 15:25:44 +10:00 |
|
Rob Harrington
|
136d361134
|
Fixing comment
|
2015-04-05 14:14:47 +10:00 |
|
Rob Harrington
|
009b25a491
|
Adding an editable variants scope for incoming exchanges
|
2015-04-05 13:59:00 +10:00 |
|
Rob Harrington
|
d28fc7e42d
|
Hubs can see incoming exchanges of producers who have given them P-OC or whose variants they are actively distributing
|
2015-04-03 14:58:01 +11:00 |
|
Rob Harrington
|
74b7feda53
|
coordinator of a simple order cycle has permission to add their own variants to outgoing exchanges
|
2015-03-27 16:16:13 +11:00 |
|
Rob Harrington
|
524645aff4
|
Replacing visible_variants_for(exchange) with more general methods for determining visbility based on the enterprises involced and the current order cyclegs
|
2015-03-27 16:16:11 +11:00 |
|
Rob Harrington
|
b747f61eb1
|
P-OC permissions don't apply when determining which enterprises are loaded for order cycle interface
|
2015-03-27 16:16:10 +11:00 |
|
Rob Harrington
|
7e24e6743e
|
enterprises_for is now order_cycle_enterprises_for, and can be passed an order_cycle or a coordinator (for new order_cycles)
|
2015-03-27 16:16:09 +11:00 |
|
Rob Harrington
|
d8c4e292c8
|
Adding method for determining variant override hubs
|
2015-03-27 16:09:45 +11:00 |
|
Rob Harrington
|
81765de7a7
|
Building a permission method to determine which enterprises are visible to the user for a given OC
|
2015-03-27 16:07:38 +11:00 |
|
Rob Harrington
|
00821a60cc
|
More specific references to enterprise id in permissions querying methods
|
2015-03-27 16:07:37 +11:00 |
|
Rob Harrington
|
252ddf9beb
|
Adding method to permissions library for scoping the list of visible variants in a given exchange to a particular user
|
2015-03-27 16:07:37 +11:00 |
|
Rob Harrington
|
22161bfd6e
|
rewriting permissions query functions in permissions library, to make scoping easier
|
2015-03-27 16:07:37 +11:00 |
|
Rob Harrington
|
6c4db7fc22
|
Adding permission to view outgoing exchanges to producers who have granted P-OC to the relevant outgoing hub
|
2015-03-27 16:07:37 +11:00 |
|
Rob Harrington
|
df4437ecfe
|
Altering permissions for exchanges, so the exchange is visible to managers of at least one of the enterprises invloved
|
2015-03-27 16:07:37 +11:00 |
|
Rohan Mitchell
|
a7bb04b890
|
Find all producers for which we can create variant overrides
|
2015-02-04 10:13:35 +11:00 |
|
Rohan Mitchell
|
4c586d1b7e
|
Fetching enterprises for which hubs can create variant overrides: allow all hubs that we can add to order cycle, find producers via create_variant_overrides permission
|
2015-02-04 10:04:57 +11:00 |
|
Rohan Mitchell
|
25189d190b
|
Shift method
|
2015-02-04 09:30:01 +11:00 |
|
Rohan Mitchell
|
fafbfe8735
|
Simplify, simplify
|
2015-01-30 15:56:10 +11:00 |
|
Rohan Mitchell
|
cfb69ae7d2
|
Add Permissions#editable_enterprises
|
2015-01-15 13:43:38 +11:00 |
|
Rohan Mitchell
|
b1ba519a73
|
When finding per hub order cycle enterprises, also return managed producers
|
2014-12-12 13:33:12 +11:00 |
|
Rohan Mitchell
|
5b82fcaca7
|
Inject hub permissions - which producers each hub can add to order cycle
|
2014-12-12 13:33:12 +11:00 |
|
Rob Harrington
|
cc0e205f50
|
Merge master into onbaording
|
2014-10-24 15:36:59 +11:00 |
|
Rohan Mitchell
|
aea8ab4c7f
|
Move #manages_one_enterprise? from User model to Permissions
|
2014-10-23 16:44:16 +11:00 |
|
Rohan Mitchell
|
694dd0c329
|
Enterprise user selling own produce only sees simple order cycle listing
|
2014-10-17 10:52:36 +11:00 |
|
Rohan Mitchell
|
9ec5dc6466
|
Find enterprises that we manage products for
|
2014-09-05 15:10:14 +10:00 |
|
Rohan Mitchell
|
e023a66167
|
Bulk product edit lists managed products
|
2014-09-05 15:10:14 +10:00 |
|
Rohan Mitchell
|
4af704b1d0
|
Fetch managed products via OpenFoodNetwork::Permissions
|
2014-09-05 15:10:14 +10:00 |
|
Rohan Mitchell
|
913c167fdf
|
Revert 5ede8d1, reinstating a4be0ff..7b89e6a
|
2014-09-05 15:10:12 +10:00 |
|