From 7f404c454afc6c546fba6885dbcf409f67a73d0f Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Wed, 27 Feb 2013 06:53:20 +0100 Subject: Rights for the call action of a SipAccount. --- app/models/ability.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models') diff --git a/app/models/ability.rb b/app/models/ability.rb index be64528..2e270da 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -169,6 +169,10 @@ class Ability # can :manage, VoicemailMessage can :manage, VoicemailSetting + + # Can initiate a call + # + can :call, SipAccount end end else -- cgit v1.2.3 From 15d5f410afafce67b61a27479a21546cebd48ed9 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Wed, 27 Feb 2013 10:23:26 +0100 Subject: Show a restore link in the setup navigation bar. --- app/models/ability.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/models') diff --git a/app/models/ability.rb b/app/models/ability.rb index 2e270da..23af525 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -90,6 +90,11 @@ class Ability # SIM cards # cannot [:edit, :update], SimCard + + # Restore is only possible on a new system. + # + cannot :manage, RestoreJob + else # Any user can do the following stuff. # -- cgit v1.2.3 From cf5938150ba3efc38feaf28f9dee6b174893430e Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Wed, 27 Feb 2013 10:41:20 +0100 Subject: Delete dupe entry. --- app/models/ability.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app/models') diff --git a/app/models/ability.rb b/app/models/ability.rb index 23af525..3ba4481 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -174,10 +174,6 @@ class Ability # can :manage, VoicemailMessage can :manage, VoicemailSetting - - # Can initiate a call - # - can :call, SipAccount end end else -- cgit v1.2.3