[Rt-commit] rt branch, 4.0/rest-documentation-cleanup, created. rt-4.0.6-251-g730a6e0
Kevin Falcone
falcone at bestpractical.com
Wed Jul 11 18:50:58 EDT 2012
The branch, 4.0/rest-documentation-cleanup has been created
at 730a6e0bf7f7a40bf674d2e1ff2f9ed29e98e4e6 (commit)
- Log -----------------------------------------------------------------
commit f5b5d03590e7e0d5db65d7ac939fc879b4ab5438
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Wed Jul 11 18:45:42 2012 -0400
Remove some erroneous documentation added in 702d1fd
This documentation was more of a "spec" for what was to be implemented.
I can find no evidence that the REST server code was ever updated to
support any of it.
diff --git a/bin/rt.in b/bin/rt.in
index 2a9f643..458790e 100755
--- a/bin/rt.in
+++ b/bin/rt.in
@@ -1909,8 +1909,6 @@ Text:
ticket/1-3,5-7/history
user/ams
- user/ams/rights
- user/ams,rai,1/rights
For more information:
@@ -2028,20 +2026,6 @@ Text:
- edit
- create
- In addition, the following type-specific actions exist:
-
- - grant
- - revoke
-
- Attributes:
-
- The following attributes can be used with "rt show" or "rt edit"
- to retrieve or edit other information associated with users and
- groups:
-
- rights Global rights granted to this user.
- rights/<queue> Queue rights for this user.
-
--
Title: queue
@@ -2384,12 +2368,6 @@ Text:
--
-Title: grant
-Title: revoke
-Text:
-
---
-
Title: query
Text:
commit 730a6e0bf7f7a40bf674d2e1ff2f9ed29e98e4e6
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Wed Jul 11 18:47:32 2012 -0400
This code was a runtime error
It now tells you something more useful if you say
rt grant or rt revoke
We should remove these methods in 4.2
diff --git a/bin/rt.in b/bin/rt.in
index 458790e..50bfeff 100755
--- a/bin/rt.in
+++ b/bin/rt.in
@@ -967,12 +967,8 @@ sub take {
sub grant {
my ($cmd) = @_;
- my $revoke = 0;
- while (@ARGV) {
- }
-
- $revoke = 1 if $cmd->{action} eq 'revoke';
- return 0;
+ whine "$cmd is unimplemented.";
+ return 1;
}
# Client <-> Server communication.
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list