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
|
||||
use fluence::{marine, CallParameters};
|
||||
use::marine;
|
||||
use crate::get_connection;
|
||||
|
||||
pub fn is_owner() -> bool {
|
||||
let meta = marine::get_call_parameters();
|
||||
@ -217,7 +216,7 @@ pub fn is_owner() -> bool {
|
||||
caller == owner
|
||||
}
|
||||
|
||||
#[fce]
|
||||
#[marine]
|
||||
pub fn am_i_owner() -> bool {
|
||||
is_owner()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user