mirror of
https://github.com/fluencelabs/gitbook-docs
synced 2025-04-25 16:02:17 +00:00
GitBook: [main] 53 pages modified
This commit is contained in:
parent
f7b0e7a703
commit
170d601cf4
@ -207,7 +207,6 @@ CallParameters are especially useful in constructing authentication services:
|
|||||||
// auth.rs
|
// auth.rs
|
||||||
use fluence::{marine, CallParameters};
|
use fluence::{marine, CallParameters};
|
||||||
use::marine;
|
use::marine;
|
||||||
use crate::get_connection;
|
|
||||||
|
|
||||||
pub fn is_owner() -> bool {
|
pub fn is_owner() -> bool {
|
||||||
let meta = marine::get_call_parameters();
|
let meta = marine::get_call_parameters();
|
||||||
@ -217,7 +216,7 @@ pub fn is_owner() -> bool {
|
|||||||
caller == owner
|
caller == owner
|
||||||
}
|
}
|
||||||
|
|
||||||
#[fce]
|
#[marine]
|
||||||
pub fn am_i_owner() -> bool {
|
pub fn am_i_owner() -> bool {
|
||||||
is_owner()
|
is_owner()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user