FrancisG-Massey / Capstone2016

4 stars 0 forks source link

Hide 'add traps' option when user is not a trapline admin #248

Closed FrancisG-Massey closed 7 years ago

FrancisG-Massey commented 7 years ago

Users should not be able to add traps unless they hold an 'admin' role in the trapline they're trying to add traps into.

Since the API now returns a "can_edit" flag along with each trapline, if the "can_edit" flag is not set the add traps button should be hidden in TraplineInfoView